Where are cron jobs located when not under /var/spool/cron/root?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Where are cron jobs located when not under /var/spool/cron/root?
New to CRONTAB. I am running Centos 5.8 with Webmin.
Under Webmin, I go to the System/Scheduled Cron Jobs tab, and there are several CRON jobs for user root.
I then look at /var/spool/cron, and it was empty.
I then typed "crontab -e", and a new file /var/spool/cron/root was created. I go back to Webmin, and it was added. I then add a new cron using Webmin, and it updates /var/spool/cron/root.
Where are those cron jobs listed under Webmin which are not included under /var/spool/cron/root?
If webmin hasn't diced and sliced your configuration files yet---but be sure it will someday, learn to use a console text editor to configure your system instead---, system cronjobs are stored in /etc/cron.{hourly,daily,weekly,monthly} and anacron jobs in /etc/cron.d if using Vixie cron or its fork cronie; there is sometimes an /etc/crontab file that usually drives up anacron and major system-wide cron jobs. Other cron applications use slightly different schemes but the names are similar even if syntax may not.
Last edited by vorbote; 09-06-2012 at 07:10 PM.
Reason: More details.
They are (normally) where I showed you; what's not clear ?
(As confirmed by vorbote)
Note that some are dirs, some are files; you're only searching dirs there..
Tell us what distro+version you have
Code:
cat /etc/*release*
As vorbote has pointed out, it looks like webmin may have altered your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.