Multiple crontab files
Kurt Wall
kwall
Mon May 17 12:01:58 PDT 2004
In a 1.0K blaze of typing glory, Net Llama! wrote:
> On Wed, 5 May 2004, Michael Hipp wrote:
> > Question ...
> >
> > Crontab normally runs whatever is in /etc/crontab.
> >
> > But if I also create /root/crontab and do "crontab /root/crontab' does
> > this *replace* what it was running from /etc or is it in *addition* to?
> >
> > I know that a crontab for a normal user would be in addition to, but
> > wasn't sure about user root.
>
> Its in addition to on linux, AFAIK. /etc/crontab is usually for
> systemwide cronjobs that aren't tied to any particular user. If you're
> looking to create a crontab for root then do "crontab -e" as root, and
> you'll get one. I don't think that running "crontab /root/crontab" will
> do anything.
Mm, guess it depends on whose crontab you're using. Dillon's cron
has:
$ crontab -h
crontab 2.3.3
crontab file <opts> replace crontab from file
crontab - <opts> replace crontab from stdin
crontab -u user specify user
crontab -l [user] list crontab for user
crontab -e [user] edit crontab for user
crontab -d [user] delete crontab for user
crontab -c dir specify crontab directory
Vixie cron has:
$ crontab -h
crontab: invalid option -- h
crontab: usage error: unrecognized option
usage: crontab [-u user] file
crontab [-u user] { -e | -l | -r }
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
Kurt
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Lonni J Friedman netllama at linux-sxs.org
> Linux Step-by-step & TyGeMo http://netllama.ipfox.com
> _______________________________________________
> Linux-users mailing list
> Linux-users at smtp.linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users
--
Die, v.:
To stop sinning suddenly.
-- Elbert Hubbard
More information about the Linux-users
mailing list