Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 15:17:15 -0500 (EST)
From:      Matt of the Long Red Hair <mattp@conundrum.com>
To:        Scott Nolde <scott@smnolde.com>
Cc:        Dan Langille <dan@langille.org>, <questions@FreeBSD.ORG>
Subject:   Re: crontab entries need a CR/LF at the end
Message-ID:  <Pine.BSF.4.44.0202141507290.46349-100000@aeon.conundrum.com>
In-Reply-To: <20020214145934.Y46360-100000@bsd.smnolde.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0202141507290.46349-100000>