J
Justin C
I have:
my @args = ("pdflatex", $fnames->{tex});
system(@args) == 0 or warn "Problem running pdflatex : $?\n";
This dumps a lot to stdout (the user's browser). I've tried the above
with:
my @args = ("pdflatex", $fnames->{tex}, "1>/dev/null 2>&1");
But I still get unwanted output to the browser. If I run the two
versions of the command directly on a Linux command line, the one that
discards stdout works as expected. It's just under perl/cgi that it's
not discarding it.
I've had a look at the FAQ, specifically "How can I capture STDERR from
an external command?", and it suggests the change I implemented above.
Am I missing something? Is there another FAQ I should be reading instead?
Thank you for any help you can give.
Justin.
my @args = ("pdflatex", $fnames->{tex});
system(@args) == 0 or warn "Problem running pdflatex : $?\n";
This dumps a lot to stdout (the user's browser). I've tried the above
with:
my @args = ("pdflatex", $fnames->{tex}, "1>/dev/null 2>&1");
But I still get unwanted output to the browser. If I run the two
versions of the command directly on a Linux command line, the one that
discards stdout works as expected. It's just under perl/cgi that it's
not discarding it.
I've had a look at the FAQ, specifically "How can I capture STDERR from
an external command?", and it suggests the change I implemented above.
Am I missing something? Is there another FAQ I should be reading instead?
Thank you for any help you can give.
Justin.