Hey Dave,

        percent signs are a special character in crontab so they need to
be quoted.  Cron is hitting the first % in your date command treating that
as new line seperator.  From the crontab(5) page:

  Percent-signs  (%) in the command, unless
       escaped with backslash (\), will be changed  into  newline
       characters, and all data after the first % will be sent to
       the command as standard input.

Hope that helps...

M.

On Mon, 6 Dec 1999 [EMAIL PROTECTED] wrote:

> I'm trying to create a log file for a process with a date appended to the 
> logfile name.  For example, update.log.120699.  Below is my crontab input 
> and the error message mailed to me.  Any help is greatly appreciated.  Thanks.
> 
> 
> /u01/oracle/admin/prod/scripts/update.ora > 
> /u01/oracle/admin/prod/log/update.log.`date +%m%d%y` 2>&1
> 
> 
> /u01/oracle/admin/prod/scripts/update.ora > 
> /u01/oracle/admin/prod/log/update.log.`date +
> 
> /bin/sh: unexpected EOF while looking for ``'
> /bin/sh: -c: line 2: syntax error
> 
> 
> 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to