in reply to Re: Win32::Process output
in thread Win32::Process output
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::Process output
by BrowserUk (Patriarch) on Nov 03, 2010 at 20:02 UTC | |
by Anonymous Monk on Nov 03, 2010 at 22:36 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2010 at 00:33 UTC | |
by Anonymous Monk on Nov 04, 2010 at 01:01 UTC | |
by BrowserUk (Patriarch) on Nov 04, 2010 at 03:24 UTC | |
|