GaijinPunch has asked for the wisdom of the Perl Monks concerning the following question:
my $ssh = Net::SSH::Perl->new( $server ); if ( $ssh->login( "user", "pass" ) ) { my ( $stdout, $stderr, $exit ) = $ssh->cmd("ps -ef |grep \"$proc\ +" |grep -v grep"); } else { print "ERROR"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH question
by ptum (Priest) on Nov 24, 2005 at 00:40 UTC | |
by ptum (Priest) on Nov 24, 2005 at 00:52 UTC | |
by GaijinPunch (Pilgrim) on Nov 24, 2005 at 01:35 UTC | |
by ptum (Priest) on Nov 24, 2005 at 03:09 UTC | |
|
Re: Net::SSH question
by u235sentinel (Hermit) on Nov 24, 2005 at 06:13 UTC | |
by GaijinPunch (Pilgrim) on Nov 24, 2005 at 06:24 UTC | |
|
Re: Net::SSH question
by Cody Pendant (Prior) on Nov 24, 2005 at 04:10 UTC | |
by GaijinPunch (Pilgrim) on Nov 24, 2005 at 04:18 UTC |