Is there a way to scan a screen of output for a particular string, then fire off the next line of the script? (As opposed to Waiting for the string to appear.)
When Telnetting into my Adtran device I need to issue a WaitQuiet command, but experience a delay because the prompt I waiting for is already present on the terminal.
connectmanual telnet "89.1.16.105"
waitquiet 1
waitfor "SELECT UNITS"
waitfor "ENTER SELECTION : ^[[24;32H"
transmit "1"
waitquiet 1
transmit "^M"
When Telnetting into my Adtran device I need to issue a WaitQuiet command, but experience a delay because the prompt I waiting for is already present on the terminal.
connectmanual telnet "89.1.16.105"
waitquiet 1
waitfor "SELECT UNITS"
waitfor "ENTER SELECTION : ^[[24;32H"
transmit "1"
waitquiet 1
transmit "^M"