From owner-freebsd-questions Thu Feb 14 12:17:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from aeon.conundrum.com (aeon.conundrum.com [216.235.9.140]) by hub.freebsd.org (Postfix) with ESMTP id C346A37B41C for ; Thu, 14 Feb 2002 12:17:22 -0800 (PST) Received: from smtp.conundrum.com (smtp.conundrum.com [216.235.9.134]) by aeon.conundrum.com (8.9.3/8.9.2) with ESMTP id PAA05193; Thu, 14 Feb 2002 15:17:16 -0500 (EST) (envelope-from mattp@conundrum.com) Date: Thu, 14 Feb 2002 15:17:15 -0500 (EST) From: Matt of the Long Red Hair To: Scott Nolde Cc: Dan Langille , Subject: Re: crontab entries need a CR/LF at the end In-Reply-To: <20020214145934.Y46360-100000@bsd.smnolde.com> Message-ID: X-URL: http://www.conundrum.com/~mattp/ X-PGP-Fingerprint: 4C10 78AF 9257 F8AE 15F4 801D 16AC DF71 3D55 E6F4 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 14 Feb 2002, Scott Nolde wrote: > Try "crontab -e" to edit your user's crontab. I'm not aware of using > ~/crontab. It's a perfectly valid way of editing one's crontab. SYNOPSIS crontab [-u user] file crontab [-u user] { -l | -r | -e } I do it this way myself, so that I can keep a copy of the file under RCS: % cd ~ % co -l crontab % vi crontab % ci -u crontab % crontab ~/crontab I managed to reproduce this user's problem, but I had to work at it. Simply editing the file with a text editor won't do it, since most leave a \n at the end of even the last line. I had to do this: % echo -n "* * * * * ls ~/bin" > crontab % crontab crontab I'm not sure if this is a bug or not, but his observations are at least valid. It seems bug-like to me, though probably not a very high priority one. ---------------------------------------------------------------------- ``Forum, not tone. That pile question. Whether tip Miller into mind to suffer tie songs and crows oh courageous fortune or to gun and Mar it. -- Haircut'' -- William Shakespeare's "Hamlet" as misquoted by an early-model Newton. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message