If the whole output of the complex script should be redirected to the log, the following trick could be used.
if [ "$1" != "-log" ] ; then
$0 -log "$@" 2>&1 | tee the_log_file.$$.log [...]
|
||||||||
|
If the whole output of the complex script should be redirected to the log, the following trick could be used. if [ "$1" != "-log" ] ; then Search for Oracle errors in the last $NUM lines. NUM=1000 tail -$NUM alert_${ORACLE_SID}.log | awk ‘ On Unix Oracle alert log is normally located [...] |
||||||||
|
Copyright © 2010 MemoSoup - All Rights Reserved
|
||||||||