LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2005, 08:33 AM   #1
Keith Birch
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
CRONTAB Query


Hi Guys...

Its been a while since ive done crontabbing, as the server has been running very sweetly for the last 3 years. Could you please clarify wether I am correct with my below entry:

0 0 0 * 1 logrotate /blah/blah/blah

Am I correct in saying that this will run every monday in every month?

Could you also remind me how to make it run at 3:00am every monday of every month?

Cheers for any help provided.

Keith
 
Old 06-14-2005, 09:13 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
Your wanting on every Monday at 3:00am each Month? Am I reading that right? If you want it to run every Monday at 3am, its going to run every month then..

Code:
0  3  * * 1  logrotate /blah/blah
That would do it every Monday at 3:00am.. You can also specify the day by using Mon, Tue, Wed and so on.. instead of the numerical value.

man crontab for more details..
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Crontab Help cybersteve2005 Linux - Software 3 09-05-2005 01:22 PM
su in crontab nonothing Linux - General 4 12-15-2004 09:58 PM
crontab -e hoover93 Linux - Newbie 2 08-06-2004 05:05 PM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 01:35 PM
Crontab WiWa Linux - Software 1 10-06-2003 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:20 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