21 Sep
2004
21 Sep
'04
22:43
On Monday 20 September 2004 06:17 am, Jim Cunning wrote:
Today at 10:57am, Michael Satterwhite wrote:
Is there a way to use a combination of redirection and other utilities (like tee) to execute a script where
Output is shown on the screen
*AND*
The output to stdout and stderr is also directed to a log file?
This should do what you describe:
your_application 2>&1 | tee logfile.log
Jim
Jim, I know the > is for redirect but what the '2 &1' for? Thanks, Jerome