in reply to not waiting for external command to complete before getting the output
This also depends on your called program not buffering its output.open PROG,"program|" or die "Cannot fork"; while (<PROG>) { # do stuff... }
see perlopentut
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: not waiting for external command to complete before getting the output
by hambo (Novice) on Apr 26, 2004 at 18:31 UTC | |
by Joost (Canon) on Apr 26, 2004 at 19:03 UTC |