neptuna has asked for the wisdom of the Perl Monks concerning the following question:
ERROR: input must be 8 bytes long at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Crypt/DES.pm line 57.use Net::SSH::Perl; $host = "somehost"; my $ssh = Net::SSH::Perl->new($host, protocol => '2', debug => 1, privileged => 0); # THIS FAILS, WORKED FINE BEFORE #my $cmd = "perl -e '".`cat ./cm-unix.pl`."'"; # THIS IS JUST A ONE LINE FILE with 'ls-l' THAT FAILS my $cmd = `cat GO`; # WORKS FINE my $cmd = 'cd /tmp; ls -l'; $ssh->login( $ENV{USER} ); my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net:SSH:Perl Bug?
by syphilis (Archbishop) on Sep 08, 2006 at 00:05 UTC | |
by neptuna (Acolyte) on Sep 08, 2006 at 15:36 UTC |