Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2003 14:05:52 -0700
From:      Joshua Oreman <oremanj@webserver.get-linux.org>
To:        Rich Morin <rdm@cfcl.com>
Cc:        questions@freebsd.org
Subject:   Re: format of /etc/crontab?
Message-ID:  <20030703210552.GB93458@webserver.get-linux.org>
In-Reply-To: <p05200f42bb2a44de7749@[192.168.254.205]>
References:  <p05200f42bb2a44de7749@[192.168.254.205]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 03, 2003 at 01:54:36PM -0700 or thereabouts, Rich Morin wrote:
> The cron(8) man page (on my FreeBSD 4.7 system) says:
> 
>    Cron searches /var/cron/tabs for crontab files which are named after
>    accounts in /etc/passwd; crontabs found are loaded into memory.  Cron
>    also searches for /etc/crontab which is in a different format (see
>    crontab(5)).
> 
> The crontab(5) man page, however, says nothing about any differences in
> the file formats.  Instead, it appears to describe only the format that
> is used in /var/cron/tabs/* files.
> 
> I would like to know precisely how the format of /etc/crontab differs,
> but I can't find any man page that addresses this.  Help?

Normal crontabs have the time fields, and then the command to run.
/etc/crontab has an additional field after the time fields but before
the command -- the user to run the command as (usually root). This
is said in comments in /etc/crontab.

-- Josh

> 
> -r
> -- 
> email: rdm@cfcl.com; phone: +1 650-873-7841
> http://www.cfcl.com/rdm    - my home page, resume, etc.
> http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
> http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
> _______________________________________________
> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030703210552.GB93458>