http://www.perlmonks.org?node_id=922905


in reply to Re: Perl Expect Command output
in thread Perl Expect Command output

They seem to be asking for the output from a command ('help' in this case) executed on the remote device. before is the way to do it. What debugging steps have you taken already and what did you get? Since you are not error checking your spawn, do you even know if you're successfully connecting?

--Dave

Replies are listed 'Best First'.
Re^3: Perl Expect Command output
by anilhpn (Initiate) on Sep 15, 2011 at 18:11 UTC
    Thanks for the info. I had tried with a command which stores the buffer content of 'just before executed command'.
      Am looking for the same, could you elaborate your statement, which function you have used to get the output.