From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Guilherme Teixeira de Araujo Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: crontab - creating a log file Date: Wed, 11 Feb 2004 10:52:23 -0300 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <7C0747FA20D9D5119EC8000629D5291508D9F2A2@UIPA01M02> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1076504419 6916 80.91.224.253 (11 Feb 2004 13:00:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2004 13:00:19 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Feb 11 14:00:11 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AqtyN-00047f-00 for ; Wed, 11 Feb 2004 14:00:11 +0100 Original-Received: (qmail 9400 invoked by uid 5); 11 Feb 2004 13:00:01 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9340 invoked by uid 49493); 11 Feb 2004 13:00:01 -0000 Original-Received: from garaujo@usiminas.com.br by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(0.0/5.0):. Processed in 19.280267 secs); 11 Feb 2004 13:00:01 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 11 Feb 2004 12:59:42 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HSX002KC83FLG@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 11 Feb 2004 07:59:41 -0500 (EST) Original-Received: from ubhz01m03.usiminas.com.br (ubhz01m03.usiminas.com.br [200.251.3.175]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HSX009C08320L@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 11 Feb 2004 07:59:28 -0500 (EST) Original-Received: by UBHZ01M03 with Internet Mail Service (5.5.2655.55) id <1FSBKM20>; Wed, 11 Feb 2004 10:52:23 -0300 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2655.55) Xref: main.gmane.org gmane.os.tru64.managers:6407 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6407 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