Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Wait for string

by atcroft (Abbot)
on Apr 28, 2015 at 01:00 UTC ( [id://1124942]=note: print w/replies, xml ) Need Help??


in reply to Wait for string

If you are using something such as Expect, Net::SSH::Expect, or similar, you may be able to make it look for the prompt ('--MORE----', in your example), and trigger sending a "\n" in response. Also, depending on the device you are connecting to, there may be a command (such as 'set term len 0', which I've seen on a particular type of device) you may be able to execute to prevent paging of the output. If not, you may look into changing your "pager" for the command to something that would not wait, such as "cat".

Hope that helps.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found