Match exit/quit only, not substrings
Create "waitfor" script -- match a pattern then execute 1 or more commands