D
dn.perl
I want to run a perl script which will continue running on Windows XP
even after I log off, the way nohup works in Unix. A recommended way
of doing it is to run the application as Windows Service. Accordingly
I wrote a test script (myscript.pl), which prints a line every 10
seconds in an infinite loop :
Time is 2007-09-27 16:22:25
Time is 2007-09-27 16:22:35
Time is 2007-09-27 16:22:45
I created a service for the perl script. When I start the service, it
stops immediately.
The message is : The print_tstamp service on local computer started
and then stopped. Some services stop automatically if they have no
work to do, for example, the Performance Logs and Alerts service.
Any suggestions, please?
even after I log off, the way nohup works in Unix. A recommended way
of doing it is to run the application as Windows Service. Accordingly
I wrote a test script (myscript.pl), which prints a line every 10
seconds in an infinite loop :
Time is 2007-09-27 16:22:25
Time is 2007-09-27 16:22:35
Time is 2007-09-27 16:22:45
I created a service for the perl script. When I start the service, it
stops immediately.
The message is : The print_tstamp service on local computer started
and then stopped. Some services stop automatically if they have no
work to do, for example, the Performance Logs and Alerts service.
Any suggestions, please?