On 12/14/2012 09:36 PM, Grant wrote: > > I got it working in /etc/crontab. Should I file a bug for > http://www.gentoo.org/doc/en/cron-guide.xml to mention that vixie-cron > must be restarted when making changes to /etc/crontab? It says: > > "Note that only Vixie-cron schedules jobs in /etc/crontab automatically." >
You shouldn't have to restart vixie-cron, I think it just scans /etc/crontab every so often. > Wouldn't you rather use a one-liner like this? > > iptables -L -n | mail -s "mx1 iptables state" -a "From: > r...@mx1.example.com <mailto:r...@mx1.example.com>" > postmas...@example.com <mailto:postmas...@example.com> > Even the simple stuff I like to keep in a separate shell script. They're all under version control so that if one server blows up, all I have to do is checkout the git repo and hit `make` on another box and everything will more-or-less work once I emerge @world. I could avoid using a temp file that way, but it ain't broke so I'm not going to fix it.