in reply to Re: system command not working after connection with cgi breaks
in thread system command not working after connection with cgi breaks

Thank you for the reply. I have removed fork and exit and I am using close(STDOUT)
still not working...facing same problem
  • Comment on Re^2: system command not working after connection with cgi breaks

Replies are listed 'Best First'.
Re^3: system command not working after connection with cgi breaks
by pc88mxer (Vicar) on Jun 23, 2008 at 19:42 UTC
    To elaborate, you should append " >/dev/null" to your system command strings (but in the last case insert it before the &).

    Here's some basics on I/O redirection: Standard Input and Output Redirection

Re^3: system command not working after connection with cgi breaks
by dwm042 (Priest) on Jun 23, 2008 at 18:24 UTC
    You're still having problems because you didn't do what you were asked to do. pc88mixer asked you to redirect stdout in the system call to something else, like /dev/null, so that the output was not 'attached' to the cgi process. Closing stdout in the perl script isn't the same thing.