NAME

Sys::Manage::CmdFile - Systems management commands file processor

SYNOPSIS

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),...)

DESCRIPTION

See dofile method below.

new () -> new object

Creates a new object.

dofile (script file, command file)
dofile (script file, command file => history file)
dofile (script file, command file, ? history file, ? redirect log file)
dofile (sub{}(command row, redirect log file),...)

Proceeds text file interpreting rows as script commands and moving rows proceeded to history file if given.

Script and command file name may be relative to $0 directory, as in Sys::Manage::Cmd environment. History or redirect file name may be relative to the command file directory.

'$_' contains command row with redirection been evaluating.

$ENV{SMCFP}

Name of the command file be processing, may be used in Sys::Manage::Cmd script to verify permission.

LICENSE

This is free software; you can use redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Andrew V Makarow <makarow at mail.com>, for yuri