in reply to Redirecting logging and STDERR to a single file
For directing both STDOUT and STDERR you could use this (bash):./some_script > /some/log
or this (shells that don't support >&):./some_script >& /some/log
making sure to have turned on $| in your script of course../some_script > /some/log 2>&1
That way you can see output on the terminal if you wish; filter it; send stdout to /dev/null; or just send all output to the log directly - some of which are difficult to do if your script itself is writing direct to the log.
|
|---|