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 message "...Can't open stdout".
And the perl script does work if I run it from command line 
directly, not as a CGI script.

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`;   


_________________________
Are you ChinaRen?
感受中国人的电子生活
http://www.chinaren.com

Reply via email to