After racking my brains for a few weeks, I found that
Expects interact will hold and continue / return based on user input. Im now trying to accomplish that with the Perl Expect.pm module. It says ...
# $process->interact([$in_handle],[$escape sequence])
$child->interact();
$child->interact(STDIN,'X');
$child->interact([STDIN],['X']);
$child->interact( ,'X'); obviously not
$child->interact('X'); here too ..
also tried all the above with dub quotes.
.... must be missing something.
In expect
interact "X" return
Stops, give the user a router (for example) prompt back. When he/she hits X, the expect script continues.
Thanks in advance.