in reply to Re^4: Timeout on STDIN
in thread Timeout on STDIN

Then perhaps not STDIN of your (child) script, but STDOUT of the parent script (or whatever its corresponding file handle is) may be buffered?

Replies are listed 'Best First'.
Re^6: Timeout on STDIN
by boleary (Scribe) on Oct 24, 2016 at 14:25 UTC

    I believe STDOUT from my parent always flushes (so <STDIN> always works if the parent is working)

    My problem occurs if the parent hangs, because the child process then hangs waiting for <STDIN>

    So I was hoping for a way to be able to timeout waiting for <STDIN>