can't open stdout--a problem about CGI

2000-01-03 Thread smash_list
from CGI script. This program has a parameter "outfile=" to specify where the output should be put. So I set it to "outfile=stdout", This is the statements in which I invoke the DB program: $command="#/bin/sh;; lookup $parameters -outfile=stdout"; system($command); But I got a error

Re: can't open stdout--a problem about CGI

2000-01-03 Thread Eric L. Brine
I think the script can't open STDOUT in a child process under CGI, a simpler statment: system("ls") didn't work too, until I chanaged it to: print `ls`; See http://perl.apache.org/guide/porting.html#Output_from_system_calls -- Eric L. Brine | Chicken: The egg's way of making more eggs.