LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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, 12: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, 01: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, 05: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



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

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

All times are GMT -5. The time now is 07:54 PM.

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