in reply to capturing STDOUT after Win32::Process::Create()
open2 / open3 is something that can be done instead of CreateProcess.
If you're not feeding anything to it using STDIN, you can simply use:
open(COUNTER, "$COUNTERS_NAME -interval $interval |") or die("...: $!\n"); while (<COUNTER>) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: capturing STDOUT after Win32::Process::Create()
by bmc_mark (Novice) on Nov 30, 2004 at 15:26 UTC | |
by bart (Canon) on Nov 30, 2004 at 18:40 UTC | |
by bmc_mark (Novice) on Dec 01, 2004 at 16:07 UTC | |
by ikegami (Patriarch) on Nov 30, 2004 at 18:04 UTC |