Date: Fri, 3 Nov 2000 21:54:13 -0800 From: "Crist J . Clark" <cjclark@reflexnet.net> To: Steve Price <sprice@hiwaay.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 'crontab -e' woes Message-ID: <20001103215413.P75251@149.211.6.64.reflexcom.com> In-Reply-To: <20001103143637.F70975@bonsai.knology.net>; from sprice@hiwaay.net on Fri, Nov 03, 2000 at 02:36:37PM -0600 References: <20001101210426.A57642@bsd.planetwe.com> <20001101234720.J75251@149.211.6.64.reflexcom.com> <20001103143637.F70975@bonsai.knology.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 03, 2000 at 02:36:37PM -0600, Steve Price wrote:
> On Wed, Nov 01, 2000 at 11:47:20PM -0800, Crist J . Clark wrote:
>
> # > Basically what I'm trying to do is setup a non-interactive
> # > script that edits my crontab. When I type the following
> # > commands in it comments out the first entry. However, when
> # > I run it by redirecting stdin from a file it doesn't work.
> # > >From the looks of it (note the 37 -> 38 change) the file
> # > is being updated but crontab is ignoring the change.
> #
> # Don't ask me why, but try this,
> #
> # $ { echo '1s/^/#/'; echo w; } | env VISUAL=/bin/ed crontab -e
> #
> # And see what happens. (Just lost the 'q.')
>
> I've tried this on several different boxes and it didn't
> work. Does this work on your box?
Uhhh... It _did,_ but now it is not. Not sure what the heck is going
on. I will see if I have time to play with it tomorrow.
--
Crist J. Clark cjclark@alum.mit.edu
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?20001103215413.P75251>
