Error:
Argument "scp operation failed" isn't numeric in waitpid at
/usr/opt/perl5/lib/site_perl/5.8.2/Net/OpenSSH.pm line 422.
Internal error: unexpected error (0: ) from waitpid(scp operation
failed) = -1. Report it, please! at
/usr/opt/perl5/lib/site_perl/5.8.2/Net/OpenSSH.pm line 443.
Code:
my $ssh2 = Net::OpenSSH->new("$username\@$hostname:$port");
$ssh2->scp_put($lfile, $rfile);
System:
Dist=Net::OpenSSH-0.27 via CPAN
Perl=5.8.2 (Compiled with IBM xlc)
OpenSSH=OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006
OS=AIX 5.3
Note:
Works on a similar machine, AIX 5.3, with perl version 5.8.5.