in reply to Filtering output from a system() call
Since you say "exe" I'm guessing this is Windows. On a UNIX system, the traditonal way to do this would be for the command you execute to be a shell command that redirects standard output to /dev/null or some other bit bucket:
There are similar ways to redirect just standard error or both standard output and standard error if it's not that simple:myprogram > /dev/null
You can use IPC::Run to do this sort of thing (different syntax) without invoking a shell.myprogram 2> /dev/null myprogram > /dev/null 2>&1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Filtering output from a system() call
by BrowserUk (Patriarch) on Feb 10, 2003 at 06:50 UTC |