All, I wish to add forking to a script I wrote. However I wish to ensure that only a configurable number of 'children' are created.
forking is no problem, Queuing up things to be forked I can do, However is there an easy way to create a hard total, I was thinking the only way is to have each fork write it's pid to a file, and delete it when it dies, and the main parent simply counts the number of pid files in a directory. if The Number is reached the parent may check with a kill=>1 on each pid file just to check for non existing processes or possibly kill -9'd processes. Or can I do it all in memory and have the parent control, maybe using signals? Has anybody done something simillar, can anybody suggest other methods? Marty _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs