cosmicsoup has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Net::SSH::Perl; use strict; my ($auto_serv, $search_string, $insert_cmd ) = @_; my $cibs_host="www.myhost.com"; my $user = "userid"; my $cnt = 1; my $line; my $ssh = Net::SSH::Perl->new($cibs_host, options => [ "Protocol 2,1", "Debug 2", "identity_files id_dsa"]); $ssh->login($user); my (@out1, $err1, $exit2) = $ssh->cmd("df -k"); foreach $line(@out1) { print "$cnt: $line\n"; $cnt++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with data retrieved from Net::SSH:perl
by xmath (Hermit) on Feb 28, 2003 at 20:13 UTC | |
by runrig (Abbot) on Feb 28, 2003 at 23:37 UTC | |
by cosmicsoup (Beadle) on Feb 28, 2003 at 20:17 UTC | |
|
Re: Problem with data retrieved from Net::SSH:perl
by zengargoyle (Deacon) on Feb 28, 2003 at 20:15 UTC | |
|
Re: Problem with data retrieved from Net::SSH:perl
by bugsbunny (Scribe) on Mar 01, 2003 at 21:35 UTC |