03 Sep 2012 10:51:24 UTC
- Distribution: Data-Collector
- Module version: 0.15
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (579 / 0 / 0)
- KwaliteeBus factor: 1
- 75.00% Coverage
- License: perl_5
- Activity24 month
- Download (23.71KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionXSAWYERX Sawyer X
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- 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.
Module Install Instructions
To install Data::Collector, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Data::Collector
For more information on module installation, please visit the detailed CPAN module installation guide.