Greetings... Reference the camel book for information on how to prevent zombies. I run a dozen applications throughout the day that fork hundreds of times on Solaris 2.6 and 2.8. Only zombies I have ever had is when I killed processes manually. Fixed my programs and resolved that problem through proper signal handling. No zombies since then (about 200+ days on our main product). Find myself a wee bit confused though as your statements seem to contradict themselves. You want the parent to wait for child completion to prevent zombies, but you want the parent to run to completion and terminate without worrying about the child??? But if the parent does not worry about the child, aren't you creating the opportunity for zombie procs? If you do not want the parent to manage the child, then you should be able to background the process in the system call. Myself, I have strong beliefs that parents should worry about and monitor their children - at least until they leave home! ;)
Jeremy Elston Sr. Staff Unix System Administrator InfrastructureManagement.QEDs Charles Schwab & Co., Inc. (602.977.4413 / [EMAIL PROTECTED]) "Are you still here? What are you doing? There is nothing left to read. The e-mail is over. Move on... Go on - get out of here. SHOO!" WARNING: All email sent to this address will be received by the Charles Schwab Corporate email system and is subject to archival and review by someone other than the recipient -----Original Message----- From: Costa, Michael J. [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 12:42 PM To: 'Steve Aaron'; '[EMAIL PROTECTED]' Subject: RE: [Perl-unix-users] Spawning a process I thought about that. Are you not however taking a chance if the parent does not wait for the child process to complete? I believe the term is zombies? In my case, I want the parent to run to completion and terminate without worrying about the child. Mike Michael J. Costa Consolidated Edison of New York IR - Network Systems [EMAIL PROTECTED] 212.460.2994 -----Original Message----- From: Steve Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 01:35 PM To: 'Costa, Michael J.'; '[EMAIL PROTECTED]' Subject: RE: [Perl-unix-users] Spawning a process Try, If I have understood correctly, I think you want "fork", see perlfunc for documentation. That will fork off a child process while allowing the parent to carry on processing. Steve Aaron -----Original Message----- From: Costa, Michael J. [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Monday, December 17, 2001 3:46 PM To: '[EMAIL PROTECTED]' Subject: [Perl-unix-users] Spawning a process Good Morning All: I am using perl on a Sun Solaris server to do data transfer with outside companies. With one of the companies I exchange data with, the files must be sent in a particular order. What I want to do is when the last file in the chain is received on my server it will kick-off automated processing. The automated processing will begin encrypting the files and staging them to be send to our trading partner. As processing is completed on one file, I want the perl script that is running to kick off a successor job (which will be the same perl script with different parms) to process the next file in the chain. This process need not return to the script which called it. I do however what the "spawning" script to run to completion. Did that make any sense? I've tried system which will wait until the called process completes before continuing. (Don't want that) I've tried exec which seems to put the calling process into limbo or end the process? (Don't want that either) Anybody got any ideas? Thanks Michael J. Costa Consolidated Edison of New York IR - Network Systems [EMAIL PROTECTED] 212.460.2994 _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users <http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users> _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users