gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a script which I start with a batch file in the Startup directory using a batch file similar to
@c:\path\to\perl.exe c:\path\to\myscript.pl
The ampersand suppresses the CMD windows from showing up as an empty black box, making my Perl script run in the background. Because my script does something like
while(1){ DoSomething(); sleep(600); }
Are there any special tricks for terminating Perl scripts on Windowns shutdown?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exiting batch-started Perl script on WinXP shutdown
by brx (Pilgrim) on Apr 17, 2012 at 13:03 UTC | |
by Jenda (Abbot) on Apr 17, 2012 at 15:11 UTC | |
|
Re: Exiting batch-started Perl script on WinXP shutdown
by BillKSmith (Monsignor) on Apr 17, 2012 at 13:21 UTC | |
|
Re: Exiting batch-started Perl script on WinXP shutdown
by SuicideJunkie (Vicar) on Apr 17, 2012 at 15:22 UTC | |
by tye (Sage) on Apr 17, 2012 at 18:18 UTC | |
|
Re: Exiting batch-started Perl script on WinXP shutdown
by rovf (Priest) on Apr 17, 2012 at 14:34 UTC |