i am using this code : my $host = "abc.data.com"; my $user = "ybici1"; my $id_file = "/home/ybici1/.ssh/openid"; my $ssh = Net::SSH::Perl->new($host,$user,$id_file); my($stdout, $stderr, $exit) = $ssh->cmd("ls /homes/ybici1"); print "$stdout\n"; print "$stderr\n"; print "$exit\n";
but still it is not executing the command. plz advice --irfan. ________________________________ From: C.DeRykus <dery...@gmail.com> To: beginners@perl.org Sent: Fri, October 1, 2010 9:37:07 AM Subject: Re: perl net::ssh module Note: Forwarded message is attached. You chose to allow C.DeRykus (dery...@gmail.com) even though this message failed authentication Click to disallow |