From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 01:40:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEB1F16A590 for ; Mon, 8 Sep 2003 01:40:24 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB26A43FA3 for ; Mon, 8 Sep 2003 01:40:14 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h888dbQr046268 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Sep 2003 09:40:10 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h888daBY046267; Mon, 8 Sep 2003 09:39:36 +0100 (BST) (envelope-from matthew) Date: Mon, 8 Sep 2003 09:39:36 +0100 From: Matthew Seaman To: Jason Lieurance Message-ID: <20030908083936.GA45594@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Jason Lieurance , david.fleck@mchsi.com, freebsd-questions@freebsd.org 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: <14243.205.240.37.184.1062989058.squirrel@www.vipersystems.biz> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.2 required=5.0 tests=AWL,BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: david.fleck@mchsi.com cc: freebsd-questions@freebsd.org Subject: Re: Making a certain cron job X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 08:40:25 -0000 --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--