LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-05-2007, 12:06 PM   #1
coldbeerz
LQ Newbie
 
Registered: Nov 2007
Location: PA
Posts: 7

Rep: Reputation: 0
what is cron schedule


How do I find out what crons I have and when they are running?
What day of the week is the cron scheduled to run to write the names of files with .bak extensions to a logfile?

Last edited by coldbeerz; 12-05-2007 at 12:10 PM.
 
Old 12-05-2007, 12:13 PM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
If /var is mounted on its own partition you can use df, otherwise du. It's me or is the title of this thread not related with your question?
 
Old 12-05-2007, 01:46 PM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
To see the list of cronjobs and when they are scheduled run the command "crontab -l". The fields are:

Min, Hour, Day of Month, Month, Day of Week, Command. Most of the fields are combined with AND, however the Day of Month and Day of Week fields are combined with OR. So if you have something like:

Code:
00 0 1-7 * 5 echo "First Friday of the Month"
It WILL NOT just echo on the first Friday of the month, it will echo EVERY Friday and everyday of the month from the first through the seventh.

It is basically saying:

if ((MIN == 00) && (HOUR == 0) && (MONTH is any) && ((DOM < 7) || (DOW == 5))) run the command.

As far as when certain things are run on YOUR system, I'd have to see the output of "crontab -l" to know.

HTH

Forrest
 
Old 12-05-2007, 01:58 PM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by colucix View Post
If /var is mounted on its own partition you can use df, otherwise du. It's me or is the title of this thread not related with your question?
Quoting myself just to tell I was not drunk when I gave the answer: I swear that was another question here!
 
Old 12-05-2007, 04:21 PM   #5
coldbeerz
LQ Newbie
 
Registered: Nov 2007
Location: PA
Posts: 7

Original Poster
Rep: Reputation: 0
Talking Thanks for the help!

This newbie learned another command. I used the crontab -1 command and found the cron I was looking for.
 
Old 12-05-2007, 04:24 PM   #6
coldbeerz
LQ Newbie
 
Registered: Nov 2007
Location: PA
Posts: 7

Original Poster
Rep: Reputation: 0
You may have been drunk

Quote:
Originally Posted by colucix View Post
Quoting myself just to tell I was not drunk when I gave the answer: I swear that was another question here!
But I did change the post. You must have replied to my post as soon as it went up. I put the wrong question up for a second.
If you are drunk -- I am jealous.
 
  


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
root cron schedule problem tuubaaku Slackware 9 08-02-2008 01:06 PM
LXer: Schedule Tasks Using Gnome-schedule (cron & at GUI) LXer Syndicated Linux News 0 07-28-2007 01:31 AM
How do I schedule a cron job? BillyGalbreath Debian 1 05-18-2006 10:52 PM
How to schedule *interactive* task with at or cron fast_rizwaan Linux - Newbie 4 09-09-2005 07:26 PM
Trying to schedule ftp login using cron compuser Linux - General 2 06-10-2005 05:22 AM


All times are GMT -5. The time now is 06:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration