in reply to system() and malformed headers

I have to be going, but here's a few things I thought:

Turn off buffering:

$| = 1;
Try backticks:
my $output = `touch /usr/tmp/bogus`;
Redirect system()'s stdout and stderr to /dev/null:
system("touch /usr/tmp/bogus > /dev/null 2>&1");
Good luck.

Replies are listed 'Best First'.
Re: Re: system() and malformed headers
by dnahman (Initiate) on Jul 09, 2001 at 21:58 UTC
    Hi there, Turning off buffering with $|=1 didn't work, but the backticks did the trick.
    thanks!
    --david