![]() |
redirecting stdout and stderr to a file
Hi
I'm trying to write a script and at the same time log all errors to a file. I've noticed that in configure scripts they use this: Code:
exec 5>config.log Code:
&> file.log Again this is not what I want. So how do I go about redirecting both stdout and stderr to a file but appending to the files last contents? Thanks. Avatar |
Code:
2>&1 | tee -a file.log |
blah blah >> mylog 2>> mylog
|
Code:
>> file.log 2>&1 |
Thanks, much appreciated.
|
All times are GMT -5. The time now is 01:48 PM. |