From owner-freebsd-questions Fri Nov 3 12:36:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id C00A137B479 for ; Fri, 3 Nov 2000 12:36:42 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id eA3Kab715143; Fri, 3 Nov 2000 14:36:37 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.0/8.9.3) id eA3Kabj71771; Fri, 3 Nov 2000 14:36:37 -0600 (CST) (envelope-from steve) Date: Fri, 3 Nov 2000 14:36:37 -0600 From: Steve Price To: cjclark@alum.mit.edu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: 'crontab -e' woes Message-ID: <20001103143637.F70975@bonsai.knology.net> References: <20001101210426.A57642@bsd.planetwe.com> <20001101234720.J75251@149.211.6.64.reflexcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001101234720.J75251@149.211.6.64.reflexcom.com>; from cjclark@reflexnet.net on Wed, Nov 01, 2000 at 11:47:20PM -0800 X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? Thanks for the reply. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message