Data::Collector::Commands - A role for commands to be used to collect data
version 0.15
my $command = get_command('test'); # new path set_command( test => '/usr/local/test' );
This is a role that is used to fetch the complete path of programs. The reason to use a complete path instead of relative (/bin/cat instead of cat) is a security reason. When using relative paths, you might reach aliases, depending on the configuration of the remote (or local) shell.
The idea is to make it easier for you to configure where your paths are, in case the default one don't work (such as the difference between FreeBSD and GNU/Linux.
These are the set of commands. It comes with default locations for commands used by core Data::Collector::Info objects.
Sets a command's explicit path.
Gets a command's explicit path.
Sawyer X <xsawyerx@cpan.org>
This software is copyright (c) 2012 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Collector, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Collector
CPAN shell
perl -MCPAN -e shell install Data::Collector
For more information on module installation, please visit the detailed CPAN module installation guide.