Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-21-2004, 05:47 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 13

Rep: Reputation: 1
5 minute cron jobs for mrtg and gate_news

I have seen one other posting on a similar subject, but the answer didn't really explain what was going on...

I have the following cron entries every five minutes:

(root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)
(root) CMD (/usr/lib/sa/sa1 1 1)
(mailman) CMD (/usr/bin/python -S /var/mailman/cron/gate_news)

in /var/log/cron

MRTG is for logging website statistics so I would imagine these are used for that purpose. Is there a way to disable this logging or at least change the frequency?

Can someone give me an explanation of what these are and how to either get rid of them or reduce the frequency?

Thanks in advance.
Old 12-21-2004, 07:16 PM   #2
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The right syntax in crontab is
*/5 * * * * usr/bin/mrtg /etc/mrtg/mrtg.cfg

cron will run the above every 5 minutes. If you want to understand the above syntax it will be something like
0,5,10,15,20,25,30,35,40,45,50,55 * * * * usr/bin/mrtg /etc/mrtg/mrtg.cfg

If you want to disable a schedule place # in the beginning of the line.

Type info crontab at an terminal screen. Then select crontab(5) or other see also entries.

To edit crontab type crontab -e. This will bring up vi and load the crontab for the logged in user.
Old 12-22-2004, 02:54 PM   #3
LQ Newbie
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 1
Thank you for the reply, but I was more interested in what applications configured these cron jobs and where I might change the frequency or even existance.

I am assuming that since mrtg is a webserver statistics application that is was probably set up when I initialized my apache webserver, but I can't be sure. Also, even though the mrtg cron job appears to be owned by root, it doesn't show up in roots crontab job list.

I did find the gate_news job when I ran:
crontab -u mailman -l
but it says:
DO NOT EDIT THIS FILE - edit the master and reinstall
I investigate further as to where this master is...
Old 12-22-2004, 06:23 PM   #4
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I just told you how to edit the crontab schedule. Type crontab -e at the terminal or at bash prompt. It will open up vi with the crontab schedule for the user you are logged into.

You can edit the master located in /var/log/spool/cron but the changes will not take effect unless you run the crontab utility with the changed file. Using crontab -e or crontab -e -u user is easier than just edit the crontab file and telling crontab to update the schedule for the desire user.

Usually crontab file is in /etc named as crontab.


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 Jobs XaViaR Linux - General 1 06-23-2005 07:57 PM
problem with cron jobs umk Linux - Newbie 2 01-25-2005 11:14 AM
cron jobs working2hard Linux - Software 0 07-28-2004 06:31 PM
CRON Jobs scottpioso Linux - Software 63 11-28-2003 07:45 PM
cron jobs Zyanid Linux - Software 0 08-27-2002 06:10 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:38 PM.

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