tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Guilherme Teixeira de Araujo <garaujo@usiminas.com.br>
Subject: SUMMARY: crontab - creating a log file
Date: Wed, 11 Feb 2004 10:52:23 -0300	[thread overview]
Message-ID: <7C0747FA20D9D5119EC8000629D5291508D9F2A2@UIPA01M02> (raw)

	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
	


                 reply	other threads:[~2004-02-11 13:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox