in reply to Re^5: Win32::Job::watch vs. system(1,...)
in thread Win32::Job::watch vs. system(1,...)
my $pid = $job->spawn();
I must admit that there is something I don't understand in the documentation of Win32::Job::spawn. The perldoc says:
I was thinking that this means, spawn creates a new process, but does not actually execute it, and that I would have to execute it with one of the other methods (run or watch). In your example, you use neither of these. How is this supposed to work, respectively, in what way did I misunderstand the documentation?spawn($exe, $args, \%opts); Creates a new process and associates it with the Job. The proc +ess is initially suspended, and can be resumed with one of the other methods.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Win32::Job::watch vs. system(1,...)
by BrowserUk (Patriarch) on Sep 28, 2009 at 10:44 UTC |