Hi Perlmonks,
I am new to Expect and find it very useful. At any rate, I am using Expect to access another system. The returned prompt contains the following format:
"Mon Aug 13 17:04:31 2012 JTSOC> "
The date and time continually changes and as a result, I am having a difficult time using waitfor() for the expected prompt.
How can have expect look for "JTSOC> " in the prompt since I know that part of the prompt is not changing so I can issue the next command to execute?
Thanks in advance!
NeuhruIn reply to Perl Expect Prompt: Waitfor Specific Character by neuhru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |