greetings perl monks and mavens,
Is it truly possible to spawn a child process in perl on windows so that the parent process does NOT wait for the child process to finish before the parent continues its own processing? I’ve tried to accomplish this over the last couple of days using exec, system, wind32::process, proc::background, fork, and more, on windows server 2008 using perl 5.22.1. For each of these statements I’m able to spawn a child process that runs a .bat file successfully, but in each case the parent waits for the .bat file to finish processing ( it takes about 40 seconds ) before the parent proceeds. I’m beginning to think that this is not really possible on windows. I have found dozens of sites that detail usage of each of these statements ( including several perlmonks pages ) and I’ve tried them all. I can get all of the above-listed statements to launch and complete a child process but I can’t get the parent to NOT wait for completion.
Any guidance is very gratefully appreciated. Thank you.
- john