Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Net::SSH::Expect command returns command itself

by aitap (Deacon)
on Sep 07, 2012 at 19:46 UTC ( #992364=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Net::SSH::Expect command returns command itself
Download Code
Re^2: Net::SSH::Expect command returns command itself
by fanasy (Novice) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992364]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-11-01 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (228 votes), past polls