Date: Thu, 11 Jun 2009 07:56:22 +0000 (UTC) From: Danijel Tasov <gmane@korn.shell.la> To: freebsd-questions@freebsd.org Subject: Re: Cronjob Message-ID: <h0qdb6$n18$1@ger.gmane.org> References: <4A2D0A5C.8010809@webrz.net> <20090608143609.GA5108@it.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?h0qdb6$n18$1>