in reply to Re: help on Net::SSH2
in thread help on Net::SSH2

Thanks
yes it is printing the values.
how can ,if i want to change the directory and list the files.
more over,i have to do lot of commands in single channel

Replies are listed 'Best First'.
Re^3: help on Net::SSH2
by zentara (Cardinal) on Aug 22, 2006 at 12:00 UTC
    Read "perldoc Net::SSH2::Channel". You can combine the stderr and stdout with 'merge', so you can see the remote error messages. If you want to run mutiple commands, you can use "shell" or just create as many channels as you need, like $chan, $chan1, $chan2, etc. and run exec on them in an sequential order. Another option may be to use the SFTP object, if you just want dir listings.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum