Subject: | execute capture(@command) using Net-OpenSSH-0.39.tar.gz error => sh: display : not found |
Date: | Mon, 2 Nov 2009 11:47:22 +0800 |
To: | <bug-Net-OpenSSH [...] rt.cpan.org> |
From: | "ZHOU Huimin" <Huimin.Zhou [...] alcatel-lucent.com> |
Hello,
Integrate openssh-5.0 in embedded machine,
and on the openssh-5.0 platform, new commands have been developed, such
as display command .
BUT error occur =>
sh:display: not found
remote find command failed: child exited with code 127 at pro.pl.
following is the program pro.pl:
Show quoted text
>>use Net::OpenSSH;
>>my $ssh = Net::OpenSSH->new('root@ip', password => "pass");
>>my @result = $ssh->capture("display");
>>$ssh->error and
>> die "remote find command failed:".$ssh->error;