NAME
Sys::Run - Run commands and handle their output.
SYNOPSIS
use Sys::Run;
my $Sys = Sys::Run::->new({
'logger' => Log::Tree::->new(),
});
my $ok = $Sys->run('sleep 60');
METHODS
check_ssh_login
Make sure an password-less SSH access to the target is working.
clear_caches
Clear all OS-level (linux) caches.
run_cmd
Run the given command.
Available options: - Logfile - CaptureOutput -- Outfile --- Append - Verbose - Timeout - ReturnRV
run
Run the given command on the given hostname (maybe localhost).
run_remote_cmd
Run the given command on the remote host.
Available Options: - NoHup - UseSSHAgent - NoSSHStrictHostKeyChecking - SSHOpts - ReturnRV - Retry
check_binary
Make sure the given (unqalified) binary exists somewhere in the search path.
check_remote_binary
Make sure the given command is an executeable binary on the remote host.
NAME
Sys::Run - Run commands and handle their output.
DESCIRPTION
Run commands and handle output.
AUTHOR
Dominik Schulz <tex@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Dominik Schulz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.