- COPYRIGHT AND LICENSE
Data::Collector::Commands - A role for commands to be used to collect data
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 <email@example.com>
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.