in reply to Running external command from perl but cannot capture output
@foobar=`mac \"foo.ape\" -v 2>/dev/null`;
Or, if you want to capture STDERR as well:
@foobar=`mac \"foo.ape\" -v 2>&1`;
m.att
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running external command from perl but cannot capture output
by Syco54645 (Initiate) on Apr 24, 2006 at 22:50 UTC | |
by ikegami (Patriarch) on Apr 24, 2006 at 22:53 UTC | |
by Errto (Vicar) on Apr 24, 2006 at 22:55 UTC | |
by mantadin (Beadle) on Apr 25, 2006 at 05:44 UTC | |
by Syco54645 (Initiate) on Apr 24, 2006 at 23:03 UTC |