I have a script with a line:
ruby /root/backup_scripts/new_scripts/aapxen01.rb>>/volumes/backups/aapxen01/$date.log 2>&1
This produces a log file named “.log”, obviously not what I’m looking for. How do I do it to produce the current date as the filename?
Replace $date with: