I'm trying to figure out how to start a background process in a perl script (on Windows). In other words, I don't want the script to wait for the child process to complete before regaining control. Is there an easy way to do this in just a few lines of code? I've looked at perldoc for the system command, but it doesn't seem to do what I want..
Asked
Active
Viewed 7,813 times
2 Answers
14
See system in perlport: "system(1,@args)
spawns an external process and immediately returns its process designator, without waiting for it to terminate...(Win32)"
-
Thanks, this is the simplest solution posted here. Exactly what I'm looking for. – pepsi Mar 30 '11 at 13:15