in reply to Net:::SSH::Perl to windows machine
How do you know? Try checking like this
I almost forgot, Use strict warnings and diagnostics or dieuse Net::SSH::Perl; $sshobj = Net::SSH::Perl->new( $ARGV[0] ); $sshobj->login( "user", "password" ) or die "error $!\n"; for my $cmd ( '\"C:\platform\bin\lo100cfg.exe\" -s 1>nul 2>&1', 'ls -l \"C:\platform\bin\lo100cfg.exe\"', 'ls -l "C:\platform\bin\lo100cfg.exe"', 'ls -l C:\platform\bin\lo100cfg.exe', ) { print "----->$cmd<--\n"; my ( $out, $err, $ext ) = $sshobj->cmd($cmd); print "----->$out<--\n"; print "----->$err<--\n"; print "----->$ext<--\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net:::SSH::Perl to windows machine
by perldesire (Scribe) on Sep 17, 2009 at 06:48 UTC | |
by Illuminatus (Curate) on Sep 17, 2009 at 12:45 UTC | |
by perldesire (Scribe) on Sep 17, 2009 at 14:27 UTC |