in reply to Help with Net::SSH
It would make this much easier:
$out now holds the STDOUT of the command $cmd on the remote machine, so it looks just like it would if you had logged into the remote machine and run the command. So you can do a pattern match on it, for example, to see if 'fwd' is running.use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user); my($out, $err, $exit) = $ssh->cmd($cmd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help with Net::SSH
by dru145 (Friar) on Jun 01, 2001 at 00:27 UTC | |
by btrott (Parson) on Jun 01, 2001 at 00:31 UTC |