LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-27-2012, 11:24 AM   #1
jboy4
LQ Newbie
 
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
CronJob


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/whatever.pl


Is this correct? 2pm every month on 5th,10th,15th,20th and 25th of that month.
 
Old 02-27-2012, 01:12 PM   #2
anomie
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:
Code:
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
ratotopi
Member
 
Registered: Dec 2011
Posts: 114

Rep: Reputation: 6
10 1 * * 4 /bin/yourscript.pl

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

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

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


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
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


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