[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Off-topic : CGI
On Wed, 10 Jun 1998, Roman Shterenzon wrote:
> c'mon, people, read the WHOLE message, as I stated before, it only
> happends when I user system(), the header is formed ok, and when it's not,
> ANOTHER error message is logged.
> I'm positively sure it has nothing to do with file permissions, but,
> probably the parent directory is inaccessible - I didn't check it.
> I was also thinking if there's some restrictions I'm unaware of in
> access.conf or httpd.conf?
two points to take:
1. apprently when you're printing the HTTP headers, you're not flushing
STDOUT, and thus the output from the system() call gets out first.
if it's in perl, add a '$| = 1;' before calling system().
2. read your error log. it usually contains anything written to stderr by
cgi scripts.
3. add some debug printing to stderr. perhaps one way is to redirect
STDOUT to STDERR, so all the messages printed will get to the server's
error log file.
by the way, i hope you do not pass any user-specified parameters to the
system() call??
guy