in reply to Keep running script but ending it to the browser
In this way, your perl script has handed over responsibility for the file deletion to the underlying OS immediately before ending - hence the connection to the browser will be dropped straight away.END { system "at now + 5 secs 'rm $tempfile'"; }
Again assuming *NIX OS, man at should clear up any syntactical probs contained within my suggestion.
HTH ,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Keep running script but ending it to the browser
by JavaFan (Canon) on Aug 07, 2008 at 16:32 UTC | |
by Bloodnok (Vicar) on Aug 07, 2008 at 16:52 UTC | |
by cowgirl (Acolyte) on Aug 07, 2008 at 17:59 UTC | |
by Bloodnok (Vicar) on Aug 07, 2008 at 18:18 UTC |