CLIENT <--> PARENT <--> CHILD
<--> CHILD2
<--> CHILD3The PARENT process is a daemon written in perl that is listening for incoming requests to perform various tasks. As those requests come in, PARENT needs to start up CHILD scripts (or executables - doesn't really matter) and then communicate with those CHILD processes via STDIN and STDOUT (think something interactive like "bc"). When the CHILD completes, we clean it up and wait for more requests. While it is running, the CLIENT might be polling the PARENT for status, or sending instructions to start new CHILDren or whatever.
On UNIX/Linux, we achieve this using select and it works very well. On Windows, apparently select does not work on "files", only on sockets. We are tearing our hair out trying to resolve this, but so far no joy. Does anyone have any suggestions?
$Bill Luebkert wrote:
Well, if you need the orig script to die for some reason, then the exec should handle that. I don't really understand the why of it all.
You could also use Win32::Process::Create and specify DETACHED_PROCESS
for the 5th arg and then just exit the orig script (I think that
should work for you also).
-- Shane P. McCarron Phone: +1 763 786-8160 x120 Managing Director Fax: +1 763 786-8180 ApTest Minnesota Inet: [EMAIL PROTECTED]
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
