##
# Read File on remote machine
( $DATA, $ERR ) = $SSH->capture2( "cat
## ##
$ssh->system({stdout_file => ['>>', $local_file]},
cat => $remote_file).
####
my $PROC = $SSH->capture( "ps aux | grep | grep -v grep | wc -l | sed 's/ *//'" );
if( $PROC == 0 ) {...