Trying to start a perl script as Windows Service




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?

.



Relevant Pages

  • Re: Collapse .. in paths?
    ... I want the Perl script to run on Windows or Unix.) ... You'd probably have to include a routine that checks with operating system ...
    (comp.lang.perl.misc)
  • Re: Help regarding Perl modules in .pl and .in extension.
    ... > I am having problems when referencing to modules that have the extension .pl ... are a Perl script and a template ... If the module you want doesn't come pre-packaged for windows, ... be hard to install. ...
    (comp.lang.perl.misc)
  • Help: "find command in windows"
    ... Hi, group, I need to move a perl script from unix to windows. ... Prev by Date: ...
    (comp.lang.perl.modules)
  • How to manipulate environment variables in parent process?
    ... Is it possible to write a perl script to manipulate the environment ... Normally, you can manipulate environment variables, but they only have ... I have a windows bat file and everyday I have to edit it to contain the ...
    (perl.beginners)
  • Question on Perl printing
    ... I edited a file in windows and uploaded it into unix. ... my perl script to read into the file and then printed some results. ... "test1.txt^M" by using vi, which means cartridge return. ...
    (comp.lang.perl.misc)