From owner-freebsd-questions Mon Mar 10 5: 4: 7 2003 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 0DBA637B401 for ; Mon, 10 Mar 2003 05:04:06 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4321843FBF for ; Mon, 10 Mar 2003 05:04:04 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.8/8.12.8) with ESMTP id h2AD3pJ6091074 for ; Mon, 10 Mar 2003 13:03:51 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.8/8.12.8/Submit) id h2AD3pu4091073 for freebsd-questions@FreeBSD.ORG; Mon, 10 Mar 2003 13:03:51 GMT Date: Mon, 10 Mar 2003 13:03:51 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: CRON and error message 'EOF in bacquote substitution' Message-ID: <20030310130351.GC90774@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <000701c2e703$ec3bb7d0$e203a8c0@macedon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000701c2e703$ec3bb7d0$e203a8c0@macedon> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Mar 10, 2003 at 02:52:34PM +0200, Bigbrother wrote: > > Hi friends, > > Recently I put into my crontab the following line > > 4 0 */10 * * /usr/bin/tar -cyf /backup/lab.`date "+%d%m%Y"`.tar.bz /lab > > But although I can execute the command into my shell, crond refuses to > execute and send me an email saying: > > <> > > > What am I doing wrong? I suspect that my problem relies on having a tcsh > as my default shell, but crontab perhaps is running a different shell. Crontab treats '%' characters specially --- see crontab(5). It will automatically replace a '%' character with a newline, as a method of being able to include multiline shell input into the crontab file. To get a literal '%', type '\%'. Cheers, Matthew -- 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message