Too much guess here, was the question sort of asked in a way that is over simplified?
If the purpose is solely to capture the result, why Perl script? Personally I dislike the idea to wrap one-liner unix command in a Perl script.
Whether Expect is something you want really depends on whether the output is analyzed right the way, or off line. If the result of the analysis is not useful for the execution itself, Expect is not the right guy. The situation is not clearly described in the original post and follow ups, so cannot say, but I sort of giving you the rule already.
In reply to Re: STDOUT, STDERR sniffer
by pg
in thread STDOUT, STDERR sniffer
by inguanzo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |