LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-15-2009, 09:48 AM   #1
200mg
Member
 
Registered: Jul 2006
Posts: 85

Rep: Reputation: 15
Better understanding of Cron Jobs/Crontab??


I am trying to better understand the post linked below.

I too have a cron job that root runs every 10 minutes that shows up in /var/log/auth.log, but if I run crontab -l as root it says:

Code:
no crontab for root
http://www.linuxquestions.org/questi...th.log-702381/
 
Old 05-15-2009, 10:25 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
It is most likely running from your system's cron (as root).
without knowing your distro, try starting with:
Code:
/etc/cron.d/
 
Old 05-15-2009, 10:45 AM   #3
200mg
Member
 
Registered: Jul 2006
Posts: 85

Original Poster
Rep: Reputation: 15
wow ray, you're good. It looks like a script called anacron is running from /etc/cron.d using the root account. I'm looking to see what anacron does right now. Thanks for the reply
 
Old 05-15-2009, 10:57 AM   #4
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
man anacron
Anacron can be used to execute commands periodically, with a frequency specified
in days. Unlike cron(8), it does not assume that the machine is running continu-
ously. Hence, it can be used on machines that arenít running 24 hours a day, to
control daily, weekly, and monthly jobs that are usually controlled by cron.


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron hourly, daily, cron.d jobs don't execute eggsmartha Linux - General 3 09-17-2007 07:37 PM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 02:57 AM
crontab understanding metallica1973 Linux - Networking 11 11-09-2006 11:01 AM
Crontab not running jobs ncracraf Linux - Newbie 6 09-02-2006 03:44 PM
Extra cron jobs not in "crontab -e"? inspleak Linux - General 2 07-21-2004 10:47 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration