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
echo 'stuff to log' >&5
but this only logs stdout to config.log. I want to append both stdout and stderr.
redirects both stderr and stdout but overwrites the files old contents.
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