Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Exiting batch-started Perl script on WinXP shutdown

by rovf (Priest)
on Apr 17, 2012 at 14:34 UTC ( #965525=note: print w/replies, xml ) Need Help??

in reply to Exiting batch-started Perl script on WinXP shutdown

Do you also see this behaviour, when you remove the DoSomething? I also have Perl programs running from the command line, but so far they didn't cause trouble when shutting down Windows.

What happens if you just kill the command window, within which the Perl process runs? Is the Perl process still alive afterwards (you can use Process Explorer to find out; it's more comfortable to use than the Windows Task Manager).

As a minor issue, you don't have an ampersand in your line, and if you had one, it would, AFIK, not make your command running in background on Windoze (unless, of course, you would have something like Cygwin and use one of their shells).
Ronald Fischer <>

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965525]
[marto]: good morning all
[Discipulus]: ah ah! welcome back marto!
[Corion]: Hi marto and Discipulus!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2018-06-20 08:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.