Hena has asked for the wisdom of the Perl Monks concerning the following question:
This allows the output parsing to read the T_RES as a file, which don't require me the save all the output into memory. However this way does not capture the STDERR. Is there a way to capture the STDERR in this way as well? Is there another way which would be as easily used and require little memory?# @exec has the commad that i wish to run open (T_RES,"@exec |") or die "Unable to fork '@exec': $!"; while (<T_RES>) { # parsing the output }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirecting and using output from executed program
by Velaki (Chaplain) on Sep 30, 2004 at 10:15 UTC | |
by DrHyde (Prior) on Sep 30, 2004 at 16:50 UTC | |
|
Re: Redirecting and using output from executed program
by tachyon (Chancellor) on Sep 30, 2004 at 08:03 UTC | |
by Hena (Friar) on Sep 30, 2004 at 08:11 UTC | |
by tachyon (Chancellor) on Sep 30, 2004 at 08:13 UTC | |
by Hena (Friar) on Sep 30, 2004 at 08:22 UTC | |
by tachyon (Chancellor) on Sep 30, 2004 at 08:27 UTC | |
| |
|
Re: Redirecting and using output from executed program
by insaniac (Friar) on Oct 01, 2004 at 11:12 UTC |