loris has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I have script A which writes to the console. I now want to call script A from script B, but supress the output from script A and just evalutate the exit code.
I thought I would pass a flag to script A and then, depending on the value of the flag, use select to throw away the output. However, I don't know what filehandle I should pass to select.
Can anyone point me in the write right direction?
Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Suppressing console output
by blazar (Canon) on Sep 16, 2005 at 09:27 UTC | |
by loris (Hermit) on Sep 16, 2005 at 10:19 UTC | |
|
Re: Suppressing console output
by svenXY (Deacon) on Sep 16, 2005 at 09:33 UTC | |
by loris (Hermit) on Sep 16, 2005 at 09:41 UTC | |
|
Re: Suppressing console output
by zentara (Cardinal) on Sep 16, 2005 at 14:22 UTC | |
|
Re: Suppressing console output
by Lunchy (Sexton) on Sep 16, 2005 at 18:08 UTC | |
by Tanktalus (Canon) on Sep 16, 2005 at 19:30 UTC | |
by Lunchy (Sexton) on Sep 16, 2005 at 20:02 UTC |