Syco54645 has asked for the wisdom of the Perl Monks concerning the following question:
with perl by doingmac "foo.ape" -v
i know that this would usually suppress the output of the called program and store the output into the variable @foobar, but this is not the case. it does in fact store the output, but it does not suppress it. so instead of a nice clean terminal when running my script i get@foobar=`mac \"foo.ape\" -v`;
what i am trying to do is not have any of that output and just print a message like foo.ape file is ok or something similar. that is not the important part as i can accomplish that easily. what is important is that i just want that output to stop so that i can replace it. any help would be greatly appreaciated -Syco54645--- Monkey's Audio Console Front End (v 3.99) (c) Matthew T. Ashland - +-- Verifying... Progress: 7.1% (52.8 seconds remaining, 4.0 seconds total)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running external command from perl but cannot capture output
by m.att (Pilgrim) on Apr 24, 2006 at 22:26 UTC | |
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 |