in reply to Background process with perl and lighttpd
The problem is, that lighttpd buffers all output until all process terminate.
Have you tried to flush the output stream?
This should do the trick:
sub flush { my $fh = select( STDOUT ); my $hot = $|; $| = 1; print STDOUT ''; $| = $hot; select( $fh ); return; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Background process with perl and lighttpd
by zwon (Abbot) on Jun 02, 2010 at 19:46 UTC | |
by MonsieurBon (Initiate) on Jun 03, 2010 at 12:16 UTC | |
by Anonymous Monk on Jun 03, 2010 at 12:31 UTC | |
by MonsieurBon (Initiate) on Jun 03, 2010 at 13:44 UTC | |
by Anonymous Monk on Jun 03, 2010 at 15:28 UTC |
In Section
Seekers of Perl Wisdom