in reply to File::Find in a thread safe fashion
Since I work with databases each copy can just stuff it's data in and the database takes care of the rest.if (no runtime param) { @list = (list,of,parameters); foreach (@list) { system("this program with parameter 2>&1 >own.log &"); } } process(runtime param); sub process { ... }
Maybe you could arrange the parent to pause until all the kid's have finished, then collate the data collected?
I do this 'cos it works and scripting is a minor part of my job so I don't get the time to do it better/different.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File::Find in a thread safe fashion
by Preceptor (Deacon) on Jul 28, 2006 at 11:41 UTC | |
by tye (Sage) on Jul 28, 2006 at 15:52 UTC |