From owner-freebsd-questions@FreeBSD.ORG Sat May 31 03:58:27 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 5823737B401 for ; Sat, 31 May 2003 03:58:27 -0700 (PDT) Received: from mx1.lphp.org (APastourelles-107-1-9-120.w80-13.abo.wanadoo.fr [80.13.163.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D52043F75 for ; Sat, 31 May 2003 03:58:23 -0700 (PDT) (envelope-from ajacoutot@lphp.org) Received: from sta01 (sta01.lphp.org.local [192.168.0.4]) by mx1.lphp.org (8.12.8p1/8.12.8) with ESMTP id h4VAwEm6008453; Sat, 31 May 2003 12:58:14 +0200 (CEST) (envelope-from ajacoutot@lphp.org) From: Antoine Jacoutot To: Matthew Seaman Date: Sat, 31 May 2003 12:58:10 +0200 User-Agent: KMail/1.5.2 References: <200305311049.38120.ajacoutot@lphp.org> <20030531100436.GA75487@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20030531100436.GA75487@happy-idiot-talk.infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200305311258.14004.ajacoutot@lphp.org> cc: freebsd-questions@freebsd.org Subject: Re: backslash in crontab 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: Sat, 31 May 2003 10:58:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 31 May 2003 12:04, Matthew Seaman wrote: > Yes -- the entry in the crontab file has to be all on one line, as > you've discovered. If you absolutely have to reformat things, then > generally the way to go is to create a shell script containing your > complex command and run that out of cron instead: > > crontab entry: > > 0 2 * * * myscript > > % cat < myscript > #!/bin/sh > > command A && \ > command B && \ > command C > E_O_SCRIPT Thanks :) Antoine -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+2IrFY3Hnhkr+5cQRAqx4AJ46FZYC+hc2P5CeiSiPQ3UkpXQfFgCffUwa gICDT683Oz+1i3G6RajG3X8= =oc4D -----END PGP SIGNATURE-----