Michael,
You could use the Win32::Daemon extension to register and run your script as
a service. And by clever thread manipulation you may be able to have one
thread service the Service Control Manager (SCM) requests and other threads
service IPC of some sort (eg. named pipes or sockets) to input and output
your process info.

Daemon info is at http://www.roth.net/perl/daemon and in my second book
(http://www.roth.net/books/handbook/).

Cheers,
dave

-----Original Message-----
From: Michael D. Schleif [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 07, 2002 2:07 PM
To: perl-win32-admin List Service
Subject: re-entrant service ???



I have a non-perl application from which I need to access a second program
to process data and use this remotely processed data in the first
application.

Previously, I have used a Perl program that was called each time that the
first program needed it.  This became quite messy, since I sometimes found
many dozens of these Perl processes running simultaneously!

What I want to do is re-write that second program such that it is always
resident, like a service, and the first program can access the already
running Perl program for required data processing.

What are my options?  What maybe the best way to do this?

What do you think?

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .
_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to