From owner-freebsd-questions  Thu Feb 14 14:35:29 2002
Delivered-To: freebsd-questions@freebsd.org
Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158])
	by hub.freebsd.org (Postfix) with ESMTP id 3915637B400
	for <questions@freebsd.org>; Thu, 14 Feb 2002 14:35:27 -0800 (PST)
Received: from wocker (lists.unixathome.org [210.48.103.158])
	by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g1EMZIk29951;
	Fri, 15 Feb 2002 11:35:19 +1300 (NZDT)
	(envelope-from dan@lists.unixathome.org)
Message-Id: <200202142235.g1EMZIk29951@lists.unixathome.org>
From: "Dan Langille" <dan@langille.org>
Organization: DVL Software Limited
To: Rogier Steehouder <r.j.s@gmx.net>
Date: Thu, 14 Feb 2002 17:35:13 -0500
MIME-Version: 1.0
Subject: Re: crontab entries need a CR/LF at the end
Reply-To: dan@langille.org
Cc: questions@freebsd.org
In-reply-to: <20020214230941.A493@localhost>
References: <200202141955.g1EJt3k28638@lists.unixathome.org>; from dan@langille.org on Thu, Feb 14, 2002 at 02:54:59PM -0500
X-mailer: Pegasus Mail for Windows (v4.01)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG

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.
-- 
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