in reply to Re: Keep running script but ending it to the browser
in thread Keep running script but ending it to the browser
However inside the shell if the script is executed, it ends succesfully but then waits for 15 seconds before returning to the shell. Inside the browser the same thing happens, exactly 15 seconds after requesting the page, the page is returned. To see the problem I have added a time counter and the runtime is only around 0.2 seconds but it takes 15.2 in reality. Am I implementing the code wrong?END { system "nohup sleep 15 ; echo test >/dev/null 2>&1 &"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Keep running script but ending it to the browser
by Perlbotics (Archbishop) on Aug 07, 2008 at 19:56 UTC |