From owner-freebsd-questions@FreeBSD.ORG Fri May 2 01:24:27 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E15037B401 for ; Fri, 2 May 2003 01:24:27 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6046343FBD for ; Fri, 2 May 2003 01:24:26 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.6p2/8.12.6) with ESMTP id h428NaNY089534; Fri, 2 May 2003 03:23:36 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)h428NaeT089531; Fri, 2 May 2003 03:23:36 -0500 (CDT) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Fri, 2 May 2003 03:23:36 -0500 (CDT) From: Eduardo Viruena Silva To: Josh Brooks In-Reply-To: <20030502003956.J77914-100000@mail.econolodgetulsa.com> Message-ID: <20030502032027.N89462@Gina.esfm.ipn.mx> References: <20030502003956.J77914-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: ipfw output cannot be redirected when run in crontab (!) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 08:24:27 -0000 On Fri, 2 May 2003, Josh Brooks wrote: > > I am having a very bizarre problem. > > I have a script that does this: > > ipfw show >> /some/file > > Easy. I run this as root to test it, and it works. Every time I run it, > the previous iteration of it overwrites /some/file with the new `ipfw > show`. > > But when I put that command in a script and run it out of cron, not only > does the output not get redirected into the file, but further, nothing > gets sent to the file. > > I can even do things like this: > > echo $date >> /some/file > ipfw show >> /some/file > echo $date /some/file > > and put that script in cron - if i watch the file, it gets updated every > time with the new dates, but there is nothing between them - the ipfw show > output is just not getting there (!) > > I thought maybe it was a problem with the ipfw show output, but it works > when I run it myself, so the script is sane ... when something goes wrong, cron sends mail to the owner of the cron table, in this case, root. is root receiving mail? if it is, what does it say? > > Is there some reason that you can't run `ipfw show` inside of cron ? > I just made it, and it works. > Thanks! > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >