processes for dummies
Posted on 2003-02-27
I have a perl script running in a dos window (cygwin), and it goes a little like this:
1) Batch file calls perl script
2) Perl script does some stuff
3) Perl script calls shutdown.exe (shuts machine down)
---Insert Brainfart here
4) Perl script ends
5) Batch file ends
shutdown.exe does its thing sometime between when it was called and now. Its on a timer of x seconds.
The problem, of course, is that in Win98 the DOS window can't be forced to close because the batch has to finish. The batch can't finish because shutdown.exe hasn't "finished" until windows is shut down (duh)
So is there some way to split the process so that shutdown goes and starts its thing while in the meantime the perl script (and therefore the batch file) finish up?
Or whatever the solution...i just want the darn machine to shutdown after (or near the end) of the script. I had it working great in 2000/XP but then I tried it on 98 and I ran into this stubborn DOS window.
Will raise points depending on how helpful the answer is.