I want to run a background program in a perl script. Ideally, it would be using IPC::Open3 or RPC::Run so I have access to STDOUT/STDIN/STDERR, but at this point I'll settle for any option which works.
Unfortunately, in some situations the program is interactive and prompts for user input. I don't have a regular prompt that I can watch for to signal that it's waiting input, and for this particular situation I'm not interested in the 'modify the program' answer, and since it takes variable amounts of time to run, I can't use a simple timer to see if it's stalled. What I really need to be able to do is to check the background program to see if it's stalled waiting for input (which isn't a trivial thing to determine I realize).
Does anyone know how to do this? A lot of googling and CPAN searching hasn't given me the answer, so I'm turning to you guys.
Thanks
In reply to Testing for a background process waiting for input by SBECK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |