SUMMARY: crontab - creating a log file

From: Guilherme Teixeira de Araujo (garaujo@usiminas.com.br)
Date: Wed Feb 11 2004 - 08:52:23 EST


        Hi

        Thanks to: Paul A Sand
                     Lucio Chiappetti

        It is necessary to include "\" before "%"

    ... salva01.dump.log.`date +\%b`.`date +\%d`

        thanks
        Guilherme

Original question:

        Hi managers

        I included in the crontab the following line:

00 18 * * * /util/scripts/backup/salva01.dump >
/util/scripts/backup/log/salva01.dump.log.`date +%b`.`date +%d`

        But when the script was executed it did not create the log file with
the Month.Day in the end of the file name.

-rw-r--r-- 1 root dba 4 Feb 11 09:13
/util/scripts/backup/log/salva01.dump.log.

        
        Your help will be greatly appreciated

        Guilherme
        



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:51 EDT