Hi all, I am connecting to Netware Server using ssh 1.24 version. Here is th sample code for the same.
use Net::SSH::Perl; use Net::SSH::Perl::Cipher; my $ssh = Net::SSH::Perl->new("xx.xx.xx.xx", cipher => "DES", interactive => "true", debug => 1); $ssh->login("username", "passwd"); # $ssh->login; my ($out, $in)=$ssh->open2("m xxx.nlm"); ( Previously i tried cmd but my consle screen hangs and does not go forward) close $in; while (<$out>) { # Process output print $out; print " I am here:"; } close $out; i.e. in place of $ssh->cmd() i put open2() and able to run the command on the netware Server but always gettig output as empty So if you have to see the result of my command executed on the netware Server I am not able to do so as in linux box i was always getting some number generated related to success or failure. Could you please let me know if I am doing something wrong. Thanks, Amit -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>