Yaerox has asked for the wisdom of the Perl Monks concerning the following question:
Hey guys, I'm facing a little problem with Perl and CGI. I got a homepage with a button, on-click I'm submitting the form values and running a perl script. In this perl script I need to run a system command without waiting for the end of the command!
I did a workaround on windows local machine by finding a system command without waiting. I found out that I can run commands with a leading "start " without waiting. On windows this works fine. Reproduce: Create an perl script:
Create an Example.bat:system ( "start Example.bat 30" ); # 30 is the time in seconds to slee +p print "Finished";
timeout /t %1 :setError Exit /B 5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI - run script without waiting
by scorpio17 (Canon) on Apr 15, 2014 at 14:05 UTC | |
|
Re: CGI - run script without waiting
by Anonymous Monk on Apr 15, 2014 at 13:54 UTC | |
|
Re: CGI - run script without waiting
by Yaerox (Scribe) on Apr 15, 2014 at 14:36 UTC | |
by zentara (Cardinal) on Apr 15, 2014 at 15:24 UTC | |
by Yaerox (Scribe) on Apr 15, 2014 at 15:59 UTC | |
by Yaerox (Scribe) on Apr 16, 2014 at 08:59 UTC | |
|
Re: CGI - run script without waiting
by Anonymous Monk on Apr 15, 2014 at 17:58 UTC | |
by Yaerox (Scribe) on Apr 16, 2014 at 09:05 UTC |