in reply to Doing a system command and getting the pid

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.

  • Comment on Re: Doing a system command and getting the pid