|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Redirect output of the system() commandby andal (Pilgrim) |
| on Jul 11, 2012 at 10:02 UTC ( #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
|
|
||||||||||||||||||||