How do I start a cron job that starts on the 22nd of the month, mrtg.
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
How do I start a cron job that starts on the 22nd of the month, mrtg.
How do I start a cron job that starts on the 22nd of the month.
The cron job is MRTG Bandwidth monitor.
I have check the /usr/share/docs/mrtg but I have not found anything relating
to when the graph starts.
At the moment it starts promptly at the 1st day of each month. Which is
nice, but it's hard to figure if I have gone over my limit or not, going
over is 25c/Mb
An extra cd's worth can be quite expensive.
So I'm sure this is a cron job, but I can't see the trees for the forest,
could someone point me in the right direction?
Do a "man 5 crontab" - this will give you the appropriate man page. However all you have to do is the following.
Edit the /etc/crontab file above and comment out the existing "mrtg" line, then insert the following line
1 1 22 * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Save the file. this will start the mrtg job at 1 minute past 1am on the 22nd of each month. You can modify the first two numbers "1 1" to suit yourself. These are the minute and hour numbers respectively.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.