tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Skulley, William" <William.Skulley@rfets.gov>
Subject: Silly Cron/Script Questions
Date: Tue, 04 Jun 2002 13:29:38 -0600	[thread overview]
Message-ID: <034FA6BC04A6754B8E16094B46E8960808DB3A@EXCHSRV3.rfets.gov> (raw)

I have a cronjob:

0 0 * * * script.ksh arg1 arg2.`date +%y%m%d`

arg2 is an output filename.  When run from cron, the file comes out "arg2."
with no date information tacked on.  Running the exact same command line
from a shell (sh) prompt gets the date information properly (filename
arg2.020604).  I get the following mail from cron:

*************************************************
Cron: The previous message is the standard output
      and standard error of the following crontab command:

script.ksh arg1 arg2.`date +


If I add double quotes and change the cron entry to:

0 0 * * * "script.ksh arg1 arg2.`date +%y%m%d`"

the job does not run and I get the following mail from cron:

sh: script.ksh arg1 arg2.: not found


*************************************************
Cron: The previous message is the standard output
      and standard error of the following crontab command:

"script.ksh arg1 arg2.`date +


What am I missing?  I'm sure its something really obvious and silly but I
can't for the life of me see it.

Thanks
Bill Skulley


                 reply	other threads:[~2002-06-04 19:29 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