Duh - I misread that. In that case, using select and alarm is likely the best approach.
Luckily, the question is about Linux, where this approach will work. On Windows, reading from a pipe does not play well with select and/or IO::Select. The approaches of tunnelling the IO through (TCP) sockets (in the Win32 mkpipe emulation) do work for certain cases and horribly fail for other cases, always depending on the program spawned in such a fashion.
In reply to Re^3: Using Linux Commands in Perl - `Backticks`
by Corion
in thread Using Linux Commands in Perl - `Backticks`
by ThirtySecondNoob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |