in reply to Re^6: exec() on Windows
in thread exec() on Windows
Windows OS doesn't support exec in the POSIX form, just as it doesn't support fork. So these are both emulated by Perl on Windows--but not very accurately. In particular, exec will work pretty much exactly like system. Ie. It will start a new process and wait for that process to end.
If however, you use system( 1, ... ) it will start the new process asynchronously (it won't wait) and if the perl script ends, the new process will continue as if the script had never existed.
And yes. I use Windows.
Now, how about you answer the question I asked?
You've already agreed that if you replace exec with system( 1, 'yourname.html' );, and you run your script from the command line, it operates as you want it to.
But, you said "it doesn't work" if you double-click it, or a short-cut to it, and my question to you was:
WHAT ACTUALLY HAPPENS WHEN YOU DOUBLE CLICK IT, OR A SHORT CUT TO IT?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: exec() on Windows
by vitoco (Hermit) on May 27, 2010 at 21:48 UTC | |
by BrowserUk (Patriarch) on May 27, 2010 at 22:51 UTC | |
by vitoco (Hermit) on May 28, 2010 at 02:35 UTC | |
by BrowserUk (Patriarch) on May 28, 2010 at 04:32 UTC | |
by ikegami (Patriarch) on May 28, 2010 at 04:48 UTC |