Date: Thu, 14 Feb 2002 17:35:13 -0500 From: "Dan Langille" <dan@langille.org> To: Rogier Steehouder <r.j.s@gmx.net> Cc: questions@freebsd.org Subject: Re: crontab entries need a CR/LF at the end Message-ID: <200202142235.g1EMZIk29951@lists.unixathome.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
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202142235.g1EMZIk29951>