[svlug] Complicated logs rotation under cron and date format in Linux/Unix

David E. Fox dfox at m206-157.dsl.tsoft.com
Mon Oct 29 21:52:01 PST 2001


> crontab -e
> 
> 7 3/4 * * * /root/bin/attack.log > /dev/null 2>&1
> 7 8-23/3 * * * /root/bin/block_spam > /dev/null 2>&1
> 
> or chasing scripts around /etc/cron.* and wonder when they'll execute?

Well, if you have a script and it's executable, and you put it in 
/etc/cron.daily, you are reasonably assured that it'll run once per
day, which seems to be what is desired, rather than wondering if it'll
run at 8 and 23/3 am in the morning :).

> RPM is not good to handle crontab, nor is Debian config tools.

Of what particular relevance is RPM to editing crontabs? I don't see any
connection.

 
> Rafael
------------------------------------------------------------------------
David E. Fox                              Thanks for letting me
dfox at tsoft.com                            change magnetic patterns
dfox at m206-157.dsl.tsoft.com               on your hard disk.
-----------------------------------------------------------------------




More information about the svlug mailing list