in reply to Net::SSH::Expect command returns command itself

boolean waitfor($pattern [,$timeout])
# boolean waitfor ($string [, $timeout, $match_type]) # This method reads until a pattern or string is found in +the input stream. # All the characters before and including the match are re +moved from the input stream.
This can be the error cause: waitfor removes all the text until the prompt, including the command output. No ideas how to work it out, though.
Sorry if my advice was wrong.

Replies are listed 'Best First'.
Re^2: Net::SSH::Expect command returns command itself
by fanasy (Sexton) on Sep 08, 2012 at 09:16 UTC
    why you don't copy the error message from your command here?

      There was no error message. So solution was to add "\r" at the end of command