Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $child = fork; if (!$child) { exec('someprogram.exe'); exit; } else { while (child_process_still_running()) { sleep 1; system('kill -USR1 $child'); #signal child get_new_std_out_lines_child_has_printed_inresponse_to_signal(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get live output of exec
by kennethk (Abbot) on Mar 04, 2014 at 01:00 UTC | |
|
Re: Get live output of exec
by LanX (Saint) on Mar 03, 2014 at 23:50 UTC | |
|
Re: Get live output of exec
by zentara (Cardinal) on Mar 04, 2014 at 12:02 UTC | |
by LanX (Saint) on Mar 04, 2014 at 13:35 UTC | |
by kennethk (Abbot) on Mar 04, 2014 at 15:33 UTC |