in reply to system command not working after connection with cgi breaks
1. Remove the fork && exit at the end of your script - you don't need it.
2. On all of your system() commands, redirect STDOUT to a file or /dev/null. This especially is important for commands executed in the background like the last one you perform just before exiting.
Without #2, the server will never finish sending the response to your browser, and this might be causing your browser to time-out the connection which might have something to do with your problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system command not working after connection with cgi breaks
by advait (Beadle) on Jun 23, 2008 at 18:04 UTC | |
by pc88mxer (Vicar) on Jun 23, 2008 at 19:42 UTC | |
by dwm042 (Priest) on Jun 23, 2008 at 18:24 UTC |