in reply to How to do system calls in cgi programs

On first glance, it looks like you're running into a buffering problem. Perl buffers STDOUT by default. The various prints that you've done before invoking system() might still be buffered at the time the program you've invoked starts spewing stuff to STDOUT or STDERR.

To unbuffer STDOUT, add   $|++; to the top of your script, right before the   use strict; that you've accidentally commented out.

Replies are listed 'Best First'.
Re: Re: How to do system calls in cgi programs
by Anonymous Monk on Jan 04, 2003 at 17:31 UTC
    Thanks, Did that with no change in program behavior.