LinuxQuestions.org
Visit Jeremy's Blog.
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, 11:06 AM   #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 11:10 AM.
 
Old 12-05-2007, 11:13 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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, 12: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, 12:58 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

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

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

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