Cronjob

Danijel Tasov gmane at korn.shell.la
Thu Jun 11 08:00:03 UTC 2009


Paul Chvostek wrote:
>   0 1 28-31 * * test `date -v+1d '+%d'` -eq 1 && /path/to/script

You have to escape the percent sign in crontab with "\":

	run.  The entire command portion of the line, up to a newline
	or % character, will be executed by /bin/sh or by the shell
	specified in the SHELL variable of the cronfile.
	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.

bye,
Da.Ta



More information about the freebsd-questions mailing list