good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Redirect output of the system() commandby andal (Hermit) |
on Jul 11, 2012 at 10:02 UTC ( [id://981066]=note: print w/replies, xml ) | Need Help?? |
The executed command inherits STDOUT, STDIN, STDERR from the process that executes it. So, you can simply reopen STDERR and STDOUT to /dev/null and then execute the command. See 'perldoc -f open' for details on how to restore your STDERR and STDOUT after the command finishes.
In Section
Seekers of Perl Wisdom
|
|