Crontab problem on 4.2

Joseph S. D. Yao jsdy at hadron.UUCP
Wed Apr 16 01:45:14 AEST 1986


In article <93600014 at siemens.UUCP> yan at siemens.UUCP writes:
>	5 23 * * * /usr/local/bin/dateV '+%m%d' > /usr/adm/yesterday
>		[ blank line ]
>		m
>		d
>	Why ??

In some versions of cron (including yours, FLAMERS NOTE: this means
not including others), the '%' character gets mapped into a newline
character when the command line is run.  I do not remember off-hand
whether (a) this is escaped with a back-slash; (b) this is escaped
by doubling the '%'; (c) it cannot be escaped.  In the last case,
and perhaps in any case, you can put the "dateV '+%m%d'" line in a
shell command file and call  t h a t  from crontab.
-- 

	Joe Yao		hadron!jsdy at seismo.{CSS.GOV,ARPA,UUCP}



More information about the Comp.unix.wizards mailing list