in reply to Re^2: ssh not working
in thread ssh not working

Hi. You'd need to use them separately, as advertised on CPAN. However, the overhead, programming wise, is completely minimal. You probably, though, want to avoid having a username/password wired directly into a perl script, I would have thought......!

Replies are listed 'Best First'.
Re^4: ssh not working
by veeruch (Sexton) on Jul 04, 2006 at 15:06 UTC

    thanks you...

    my($stdout, $stderr, $exit) = $ssh->cmd("/bin/bash /bin/ls -lrt");

    still iam getting like this

    indamaaaf31786: Got channel open confirmation, requesting shell.
    indamaaaf31786: Requesting service shell on channel 0.
    indamaaaf31786: channel 1: new client-session
    indamaaaf31786: Requesting channel_open for channel 1.
    indamaaaf31786: Entering interactive session.
    indamaaaf31786: Sending command: /bin/bash /bin/ls -lrt
    indamaaaf31786: Requesting service exec on channel 1.
    indamaaaf31786: channel 1: open confirm rwindow 0 rmax 32768
    indamaaaf31786: input_channel_request: rtype exit-status reply 0
    still busy it is hanging here