I'm using the following command in CRON to run a backup job and pipe the output to a log file.
/usr/bin/su - oracle -c /home/scripts/rman/fins_hot_bu.sh > /home/scripts/logs/fins_hot_bu.log 2>&1
Currently the name of the log file is "fins_hot_bu.log", but I would somehow like to incorporate the date into the name of the file so it doesn't get overwritten every night. Is there a variable I can put into the name of the log to indicate the date? I would like something like (but doesn't have to be exactly this format) - fins_hot_bu_111899.log, or something comparable.