From: avonnieda <ad...@vo...> - 2009-11-06 19:20:00
|
Hi Folks, I have one line in a program I'm automating that will prompt sometimes, not always. How can I make an expect line "optional". In other words, ignore this block if you don't see the string before the timeot is reached. Here's the block I want to make optional. $expect->expect($timeout,"Do you want to preserve the port number"); $expect->send("n\n"); Thanks very much for any insight. -Adam -- View this message in context: http://old.nabble.com/How-to-make-an-expect-string-optional-tp26230867p26230867.html Sent from the Perl - Expectperl-Discuss mailing list archive at Nabble.com. |