in reply to parsing the results of the subroutine in real time

Assuming the other process can write to STDOUT, you can use IPC::Open2 to get a filehandle for the output. If you also need to look at STDERR, there's IPC::Open3.

If the other process has to write to a particular file, see the perlfaq5 entry "How do I do tail -f in Perl?"

  • Comment on Re: parsing the results of the subroutine in real time

Replies are listed 'Best First'.
Re^2: parsing the results of the subroutine in real time
by apl (Monsignor) on Apr 04, 2008 at 20:16 UTC