Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Exiting batch-started Perl script on WinXP shutdown

by SuicideJunkie (Vicar)
on Apr 17, 2012 at 15:22 UTC ( #965528=note: print w/ replies, xml ) Need Help??


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

Shouldn't the script be receiving a signal when windows shuts down?

Using %SIG to set an appropriate action (cleanup; exit 0) might be the simplest way to go about this.


Comment on Re: Exiting batch-started Perl script on WinXP shutdown
Replies are listed 'Best First'.
Re^2: Exiting batch-started Perl script on WinXP shutdown (TERM)
by tye (Cardinal) on Apr 17, 2012 at 18:18 UTC

    It looks like p5git://win32/win32.c. turns CTRL_SHUTDOWN_EVENT into a SIGTERM, so $SIG{TERM} should work for this case.

    - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://965528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2015-07-30 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls