Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-27-2012, 11:24 AM   #1
LQ Newbie
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled

Hi i am new to cronjob or crontab and i have made a perl script i would like to run every Thursday.

0 14 5,10,15,20,25 1-12 * /home/APPL/

Is this correct? 2pm every month on 5th,10th,15th,20th and 25th of that month.
Old 02-27-2012, 01:12 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
An excerpt from the crontab(5) manpages:
cron(8) examines cron entries once every
minute.  The time and date fields are:

           field         allowed values
           -----         --------------
           minute        0-59
           hour          0-23
           day of month  1-31
           month         1-12 (or names, see below)
           day of week   0-7 (0 or 7 is Sun, or use names)
Instead of 1-12, you could use *.
Old 02-27-2012, 02:46 PM   #3
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
10 1 * * 4 /bin/

The above line in your crontab will run, every Thursday at 1:10 AM
Old 02-27-2012, 06:03 PM   #4
LQ Newbie
Registered: Feb 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Originally Posted by ratotopi View Post
10 1 * * 4 /bin/

The above line in your crontab will run, every Thursday at 1:10 AM
Thanks. ill have to put this to work!


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
cronjob janihemang Linux - General 1 05-10-2010 05:43 PM
Cronjob..... milindpk Linux - Newbie 6 05-06-2010 07:52 PM
cronjob dnaqvi Linux - General 5 04-26-2010 05:05 AM
cronjob help meeh Linux - General 1 03-26-2004 12:41 PM
cronjob ugob Linux - Software 0 03-03-2004 10:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 AM.

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