Quote:
Originally Posted by catkin
Me too
Only suggestion is to increase the sleep to a silly big value ... ?
|
I tested the script increasing the value to more than a minute and the result was the same
I found another workaround to the problem by modifying the last line of the script (switching
tee with
> ) :
Code:
(
echo "Starting database dump ..."
date
cd $ARCHIVE_DIR
exp $USER/$PASS FILE=filename_$DATE.dmp log=logfile_$DATE.log
echo "End of database dump ..."
date
) > $LOGFILE
Running this from crontab records the expected 2 log files
Regards