Re: Trying to start a perl script as Windows Service
- From: "dn.perl@xxxxxxxxx" <dn.perl@xxxxxxxxx>
- Date: Fri, 28 Sep 2007 22:46:21 -0000
On Sep 28, 11:46 am, Bill H <b...@xxxxxxxxx> wrote:
On Sep 28, 12:45 pm, "dn.p...@xxxxxxxxx" <dn.p...@xxxxxxxxx> wrote:
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?
Just a guess - but did it stop because you closed the window, which
means it had no place to print (maybe gets an error?)
Well, I am printing (concatenating) the string to a file.
I tried to run the service with perl, and also with wperl.
But so far nothing has worked. When I log off, the process
terminates.
--------------
.
- Follow-Ups:
- Re: Trying to start a perl script as Windows Service
- From: Ben Morrow
- Re: Trying to start a perl script as Windows Service
- References:
- Trying to start a perl script as Windows Service
- From: dn.perl@xxxxxxxxx
- Re: Trying to start a perl script as Windows Service
- From: Bill H
- Trying to start a perl script as Windows Service
- Prev by Date: Re: creating something M$ Excel can read?
- Next by Date: using IPC::Open3 to write to *and* read from a process...
- Previous by thread: Re: Trying to start a perl script as Windows Service
- Next by thread: Re: Trying to start a perl script as Windows Service
- Index(es):
Relevant Pages
|