Re: Trying to start a perl script as Windows Service
- From: "dn.perl@xxxxxxxxx" <dn.perl@xxxxxxxxx>
- Date: Wed, 03 Oct 2007 18:14:34 -0000
On Sep 28, 5:30 pm, Ben Morrow <b...@xxxxxxxxxxxx> wrote:
To run an arbitrary program as a windows service you need to use srvany
from the Resource Kit. I don't really know why, but it's to do with how
Windows expects a service to behave. Seehttp://support.microsoft.com/kb/137890.
I have used srvany from the Resource Kit and followed the steps from
the above URL. But the service stops immediately after I start it. It
is supposed to print one line every 20 seconds to a file in an
infinite loop. It is not supposed to print anything to stdout, so it
should really run in the background and the question of it having 'no
place' to print (as suggested by Bill H) does not exist. Some services
stop after starting because 'they have nothing to do'. But this
process does have something to do and yet it stops.
.
- Follow-Ups:
- Re: Trying to start a perl script as Windows Service
- From: Ron Bergin
- Re: Trying to start a perl script as Windows Service
- From: Ben Morrow
- Re: Trying to start a perl script as Windows Service
- Prev by Date: command for script
- Next by Date: free utility to create exe
- Previous by thread: command for script
- Next by thread: Re: Trying to start a perl script as Windows Service
- Index(es):
Relevant Pages
|
Loading