I'm not sure about your exact situation, but I've used the following trick to get STDIN from a program that I have opened with IPC::Open3. You need to capture the output from IPC::Open3, and test it with a regex for your prompt. Then:
Then write it to IPC:Open3.{ local *STDIN; open( STDIN, "< /dev/tty" ); my $ok = <STDIN>; }
In reply to Re: Handling STDERR and STDIN in Perl
by zentara
in thread Handling STDERR and STDIN in Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |