# from herbert breunung
# on Saturday 30 August 2008 09:36:
> but there is no way to detect if the prozess is
>waiting for input?
Not really. In any piped connection, you only have the output, time of
day, and $SIG{CHLD}/$SIG{PIPE} as feedback from the child. The general
case of detecting "waiting for input" is indistinguishable
from "working really hard" or "waiting on the internet".
But given sufficient knowledge of how the child program works, you could
use a timer or the output to decide what is happening.
--Eric
--
"It works better if you plug it in!"
--Sattinger's Law
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------