Who generates the daily, weekly, monthly reports on FreeBSD?
Kevin Kinsey
kdk at daleco.biz
Sat Jan 22 19:45:54 PST 2005
Daniel Bye wrote:
>On Sat, Jan 22, 2005 at 10:01:47PM +0100, Anthony Atkielski wrote:
>
>
>>albi writes:
>>
>>a> check the /etc/periodic/ dir
>>
>>I've seen it. But where does it run from? Supposedly you're not
>>supposed to modify crontab files directly, but where do these jobs
>>belong if crontab -l from root won't list them. Is there some sort of
>>"system" crontab in addition to those for root and other users, or how
>>does it work?
>>
>>
>
>/etc/crontab is indeed the "system" crontab. You can safely edit this
>one by hand.
>
>The following three lines are the ones you're interested in:
>
># Perform daily/weekly/monthly maintenance.
>1 3 * * * root periodic daily
>15 4 * * 6 root periodic weekly
>30 5 1 * * root periodic monthly
>
>Note the additional field, before the command is named. It determines
>which user the command runs as.
>
>See crontab(5) for more details.
>
>Dan
>
>
>
As well as periodic(8), which is an excellent exposition on the
subject (if you read manpages at all ... it's real nice compared
to some :-)
Kevin Kinsey
More information about the freebsd-questions
mailing list