I'm trying to write an expect script that calls a bash script that may or may not output a line of text:
...
expect "this string appears"
...
expect "this string may or may not appear"
...
expect "this string appears"
...
How do I code in expect to send something if "this string may or may not appear" appears, or move on if it doesn't?