in reply to Re^2: Using Linux Commands in Perl - `Backticks`
in thread Using Linux Commands in Perl - `Backticks`
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using Linux Commands in Perl - `Backticks`
by JavaFan (Canon) on Oct 01, 2010 at 08:54 UTC | |
by Corion (Patriarch) on Oct 01, 2010 at 12:31 UTC | |
by JavaFan (Canon) on Oct 01, 2010 at 13:43 UTC | |
by Corion (Patriarch) on Oct 01, 2010 at 13:50 UTC |