Perl: the Markov chain saw | |
PerlMonks |
How to get prompts for expectby wulvrine (Friar) |
on Apr 16, 2007 at 15:09 UTC ( [id://610369]=perlquestion: print w/replies, xml ) | Need Help?? |
wulvrine has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow monks, I have been playing recently with perls Expect module, and came across a variety of instances where I needed to wait for the command prompt to appear before I moved on with the program. So how does one find the 'current prompt' for use later in the program to wait for said prompts to appear before continuing? The problem I have is that the command prompt is different for root, regular users, etc. I have tried sending just a newline down on the Expect handle, but it returns nothing. before/match/after are all always empty etc. Thanks a lot!
s&&VALKYRIE &&& print $_^q|!4 =+;' *|
Back to
Seekers of Perl Wisdom
|
|