in reply to Make a perl script wait until one of the processes finishes
Then, Super Search the Monastery for "fork(" ... or maybe read some Tutorials ...?