my $PROC = $SSH->capture( "ps aux | grep | grep -v grep | wc -l | sed 's/ *//'" ); if( $PROC == 0 ) {...