I am attempting to run a bash script from a cgi script. It appears that if the bash script takes more than a couple of seconds I get a timeout on the web browsers. The actual error reported from chrome is "The server closed the connection without sending any data.".
I have also tested just calling the sleep command with different values, i.e &backquote_command("sleep 5");. If I sleep for more than 2 seconds I run into this issue again. Does anyone know what timeout value is causing my issue and how I should go about fixing it?
Well I ended up resolving my issue by moving my call to ui_print_header after the call to execute my bash script.
Log in to post a comment.