OK so the syntax on that one is far beyond me. The idea though is something like this?
use threads; $thread = $threads->new(\&dostuff, "options_here"); $thread->detach; sub dostuff { $return = `foo.exe -$_[0]`; print $return; do_logging_stuff($return); }
I would need to limit the number of threads somehow though? No clue how to do this. And while I don't really care much if there are a few threads running about not completing, is there a (syntactically simple) method to kill threads that live longer than a certain period of time?
In reply to Re^2: Win32::Process output
by tawnos
in thread Win32::Process output
by tawnos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |