From: avonnieda <ad...@vo...> - 2009-11-10 14:06:47
|
Thanks very much for the replies folks, very helpful. -Adam avonnieda wrote: > > > 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-tp26230867p26283978.html Sent from the Perl - Expectperl-Discuss mailing list archive at Nabble.com. |