From owner-freebsd-questions Thu Feb 14 14:40:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from maild.telia.com (maild.telia.com [194.22.190.101]) by hub.freebsd.org (Postfix) with ESMTP id AB29237B400 for ; Thu, 14 Feb 2002 14:40:28 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maild.telia.com (8.11.6/8.11.6) with ESMTP id g1EMeR621184 for ; Thu, 14 Feb 2002 23:40:27 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id XAA23054 for ; Thu, 14 Feb 2002 23:40:26 +0100 (CET) Received: (qmail 1520 invoked by uid 1001); 14 Feb 2002 22:40:25 -0000 Date: Thu, 14 Feb 2002 23:40:25 +0100 From: Erik Trulsson To: Dan Langille Cc: Rogier Steehouder , questions@freebsd.org Subject: Re: crontab entries need a CR/LF at the end Message-ID: <20020214224025.GA1508@student.uu.se> Mail-Followup-To: Dan Langille , Rogier Steehouder , questions@freebsd.org References: <200202141955.g1EJt3k28638@lists.unixathome.org> <200202142235.g1EMZIk29951@lists.unixathome.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200202142235.g1EMZIk29951@lists.unixathome.org> User-Agent: Mutt/1.3.27i 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 Thu, Feb 14, 2002 at 05:35:13PM -0500, Dan Langille wrote: > On 14 Feb 2002 at 23:09, Rogier Steehouder wrote: > > > On my 4.4-RELEASE crontab(5) gives: > > > > > The ``sixth'' field (the rest of the line) specifies the command to be > > > 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. > > Thank you for pointing that out. > > > So, yes, it needs a newline character at the end. > > I disagree. It appears that newline or % is used to delimit one command > from another. It does not mention end of file. It doesn't have to. In Unix a 'line' is generally defined as zero or more non-newline characters followed by a newline. So if it doesn't have a newline at the end, it isn't a line. > -- > Dan Langille > The FreeBSD Diary - http://freebsddiary.org/ - practical examples > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message