LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08:48 AM   #1
200mg
Member
 
Registered: Jul 2006
Posts: 88

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, 09: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, 09:45 AM   #3
200mg
Member
 
Registered: Jul 2006
Posts: 88

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, 09: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



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 06: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 01:57 AM
crontab understanding metallica1973 Linux - Networking 11 11-09-2006 10:01 AM
Crontab not running jobs ncracraf Linux - Newbie 6 09-02-2006 02:44 PM
Extra cron jobs not in "crontab -e"? inspleak Linux - General 2 07-21-2004 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:49 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
Open Source Consulting | Domain Registration