Sys::Manage::CmdFile - Systems management commands file processor
use Sys::Manage::CmdFile; Sys::Manage::CmdFile->dofile(script file, command file); Sys::Manage::CmdFile->dofile(script file, command file => history file); Sys::Manage::CmdFile->dofile('bin/smcmv.pl', 'var-test/soon-do' => 'soon-done'); Sys::Manage::CmdFile->dofile(sub{}(row),...)
See dofile and dofck methods below.
dofile
dofck
Creates a new object.
Checks dofile commands file for command rows present. If commands found, executes script or sub{} given once, for file names.
'$_' for sub{} contains file names and redirection.
Processes text file interpreting rows as script command lines and moving rows proceeded to history file if given.
Command file name may be relative to script directory. History and redirect file names may be relative to the command file directory.
'$_' for sub{} contains command row and redirection been evaluating.
Name of the command file be processing, may be used in Sys::Manage::Cmd script to verify permission.
Number of seconds to spend for processing. Decremented by dofck and dofile for subsequent operation.
This is free software; you can use redistribute it and/or modify it under the same terms as Perl itself.
Andrew V Makarow <makarow at mail.com>, for yuri
To install Sys::Manage::Cmd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Manage::Cmd
CPAN shell
perl -MCPAN -e shell install Sys::Manage::Cmd
For more information on module installation, please visit the detailed CPAN module installation guide.