in reply to Re: Net:::SSH::Perl to windows machine
in thread Net:::SSH::Perl to windows machine
Output:use Net::SSH::Perl; $sshobj = Net::SSH::Perl->new( $ARGV[0] ); $sshobj->login( "user", "password" ) or die "error $!\n"; for my $cmd ( '\"C:\\platform\\ilo\\bin\\lo100cfg.exe\\" -s 1>nul 2>&1', 'ls -l \"C:\\platform\\ilo\\bin\\lo100cfg.exe\\"', ) { print "----->$cmd<--\n"; my ( $out, $err, $ext ) = $sshobj->cmd($cmd); print "----->$out<--\n"; print "----->$err<--\n"; print "----->$ext<--\n"; }
----->\"C:\platform\ilo\bin\lo100cfg.exe\" -s 1>nul 2>&1<-- -----><-- ----->C:\platform\ilo\bin\lo100cfg.exe: not found<-- ----->0<-- ----->ls -l \"C:\platform\ilo\bin\lo100cfg.exe\"<-- ----->-rwxr-xr-x+ 1 ???????? None 172032 Jul 7 11:23 C:\platf +orm\ilo\bin\lo100cfg.exe<-- -----><-- ----->0<--
In the above result, ls -l is showing the exe file is exists. but when i was executing the same exe, its saying "exe not found" what could be the problem?
Thanks in Advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net:::SSH::Perl to windows machine
by Illuminatus (Curate) on Sep 17, 2009 at 12:45 UTC | |
by perldesire (Scribe) on Sep 17, 2009 at 14:27 UTC |