System crontab

keith smith klsmith2020 at yahoo.com
Sat Jul 31 15:49:25 MST 2010


This is good!  Thanks

------------------------

Keith Smith

--- On Fri, 7/30/10, Kevin Fries <kfries6 at gmail.com> wrote:

From: Kevin Fries <kfries6 at gmail.com>
Subject: Re: System crontab
To: "Main PLUG discussion list" <plug-discuss at lists.plug.phoenix.az.us>
Date: Friday, July 30, 2010, 6:59 AM

Most modern Linuxes also have a facility to all files in a directory.  These Linux versions will usually preload your crontab to run at a different directory every hour, day, week, or month.  Usually, these directories are called /etc/cron.daily for the once per day, etc.

If your system is so equipped, simply placing a running script, with execute permissions on the appropriate folder, will cause the script to be added to the rotation.  If its important, be aware that run-parts runs files alphabetically.

Once the file is put in one of these directories, cron will automatically find it, no need to mess with a crontab file at all, and since run-parts is executed from the system crontab, everything is run as root.
HTH

Kevin
On Jul 29, 2010 11:11 PM, "keith smith" <klsmith2020 at yahoo.com> wrote:



Hi,

I have been setting up a cron job and found out there are two different crons. 1) the user cron located at  /var/spool/cron/ on my Fedora Box and 2) the system crontab located at /etc/crontab .

When I do the crontab -e (if I am recalling correctly) I am editing the user crontab.  


To edit the system crontab do I just use VI or some other editor?

I would have thought if I were root and issued crontab -e I would have been editing the system crontab, however this was not my experience.


Thanks in advance for your insight.


------------------------

Keith Smith








      
---------------------------------------------------

PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us

To subscribe, unsubscribe, or to change your mail settings:

http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


-----Inline Attachment Follows-----

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100731/4c2173bc/attachment.html>


More information about the PLUG-discuss mailing list