in reply to Running a Perl script in the background from another Perl script

As far as option #3 is concerned, you need to exec the perl interpreter with the script as an argument. "C:\perl\perl.exe C:\my\frikkin\script.pl"

Option 2 is a dead end under windows.

I'm assuming the problem with #1 is the same as #3

NT or 2000 will allow you to set up your scripts as services that can be started and stopped from the command line. Use the Srvany.exe. Note, services can interact with users -or- the network, not both. If you need any more information on this, I have a procedure typed up.

~Hammy

  • Comment on Re: Running a Perl script in the background from another Perl script

Replies are listed 'Best First'.
Re: Re: Running a Perl script in the background from another Perl script
by RayRay459 (Pilgrim) on Jul 10, 2001 at 22:53 UTC
    I read that you can create a service on an NT machine with Win32:Daemon. I have not tested this yet, but i would love to try it out when time permits. I believe Dave Roth Created this module. Just FYI to my fellow monks. ~Ray~
Re: Re: Running a Perl script in the background from another Perl script
by bschmer (Friar) on Jul 11, 2001 at 01:50 UTC
    Option #2 works fine under Cygwin, which depending upon your situation may not be a limitation.