It may be more than you want and can be improved but I replied a while ago in Re: Spawning processes using Win32::Process - simple example of forking many like processes with some example code that spawns off a number of processes in the background, then waits for them all to finish, getting stdout/stderr and the return code of each (tested on both Unix and Windows). HTH.
In reply to Re: Doing a system command and getting the pid
by eyepopslikeamosquito
in thread Doing a system command and getting the pid
by bobhussey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |