[EMAIL PROTECTED] writes..

>how could I make perl script to run as a process on windows32?

I assume that your subject is correct, and you made a typo in your
question above and meant to say "service" where you said "process",
because obviously any Perl script that is running will be run as a
process on Win32 (or at least it will spawn a perl.exe process that will
run the script).

To run a Perl program as a service you can do a number of things. The
Microsoft Windows2000 Resource Kit tool srvany.exe allows you to create
arbitrary windows services from any command line. This is quite clunky
and gives your program no control over stop, start, pause and resume
events.

The better option is to get the ActiveState Perl Development Kit which
has (amongst other things) a tool called PerlSvc. This allows you to
write proper services in Perl with proper event handlers for the service
events. It works very well, I've written a few services in it and all
have worked very well.

>Is it also possible on unix?

Under UNIX (AFAIK) the equivalent to a service is a daemon. I don't know
anything about how these work or whether they can be written in Perl.
I'd be very surprised if you couldn't do this quite easily.

-- 
  Jason King
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to