Date: Fri, 2 May 2003 00:45:13 -0700 (PDT) From: Josh Brooks <user@mail.econolodgetulsa.com> To: freebsd-questions@freebsd.org Subject: ipfw output cannot be redirected when run in crontab (!) Message-ID: <20030502003956.J77914-100000@mail.econolodgetulsa.com>
next in thread | raw e-mail | index | archive | help
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 ... Is there some reason that you can't run `ipfw show` inside of cron ? Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030502003956.J77914-100000>