Date: Mon, 8 Sep 2003 09:39:36 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Jason Lieurance <jason@vipersystems.biz> Cc: freebsd-questions@freebsd.org Subject: Re: Making a certain cron job Message-ID: <20030908083936.GA45594@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <14243.205.240.37.184.1062989058.squirrel@www.vipersystems.biz> References: <13696.205.240.37.184.1062986048.squirrel@www.vipersystems.biz> <20030907212701.K1087@grond.sourballs.org> <14243.205.240.37.184.1062989058.squirrel@www.vipersystems.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
--VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 07, 2003 at 10:44:18PM -0400, Jason Lieurance wrote: > Thank you for the response. Does the date part (Date=3D`date +"%Y-%m-%d"`= ) go as part > of the cron job? Thanks again. % characters are special in crontabs -- you need to escape them using a backslash: 0 0 * * * mail -s log web@ourdomain.com < /var/log/`date +"\%Y-\%m-\%d"`= -error_log Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/XEBIdtESqEQa7a0RAqDVAJ0QT4P3VOgeqPTzpS6lWVAg5VLYWwCfVsMJ oQWlgEbIbYcPcsVN7k0I7RY= =v7Ya -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030908083936.GA45594>