10/12/2010, "Irfan Sayed" <irfan_sayed2...@yahoo.com> you wrote:

>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

May be, executing but not printing, due to the error here:
"ls /homes/ybici1" ?

--
Regards,
Alex

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to