in reply to Re^5: SFTP Issue
in thread SFTP Issue
use strict; use warnings; use Net::SSH::Perl; my $host = "217.154.215.76"; my $user = "etrade"; my $cmd = "ls rolling*"; my $ssh = Net::SSH::Perl->new($host, debug => 1, identity_files => ["/ +etrade/home/ibia_ir/.ssh/id_rsa"], protocol=>'2,1'); $ssh->login($user); my($stdout, $stderr, $exit) = $ssh->cmd($cmd); print "$stdout"; print "$stderr"; print "$exit";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: SFTP Issue
by prasanna14 (Initiate) on Jul 17, 2008 at 19:35 UTC |