LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-17-2006, 08:53 PM   #1
stancol
LQ Newbie
 
Registered: Nov 2004
Location: Grand Island, NE
Distribution: SME 6.0,Red Hat 7.3,Debian
Posts: 4

Rep: Reputation: 0
Third Thursday Cron Job


Trying to write a cron job that executes a script for one week prior to the third Thursday of the month. I want to be able to post our Amateur Radio Club Meeting one week before the third Thursday out over an APRS (Automatic Position Radio System) Radio. I'm using MEPHIS (Debian) Distro. I've seen several scripts on the net but so far none of them work correctly. This is probably better done as a Perl script but my knowledge of Perl is extremely limited.

Also want one to execute for one week prior to the last Saturday in June. I'm guess though that the second script can be derived out of the first one.
 
Old 09-18-2006, 11:24 AM   #2
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Quote:
Originally Posted by stancol
Trying to write a cron job that executes a script for one week prior to the third Thursday of the month.
Please clarify: How often do you want it to run during said week? More than once?
Quote:
Originally Posted by stancol
I want to be able to post our Amateur Radio Club Meeting one week before the third Thursday
One week before the third Thursday would be on the second Thursday, right? At what time would you like the script to run?

Last edited by Quigi; 09-18-2006 at 11:25 AM.
 
Old 09-18-2006, 05:46 PM   #3
fudam
Member
 
Registered: Feb 2006
Distribution: FC
Posts: 86

Rep: Reputation: 15
I could be wrong but putting this in your crontab should send execute the command on the 2nd Thursday of the month at 2:30 in the morning:
Code:
30 2 8-14 * 4        /home/user/bin/script.fu
 
Old 09-25-2006, 08:00 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
And BTW, it's "MEPIS" not "MEPHIS" or "MEMPHIS"
-- 5 letters, no duplicates, difficult to get right at first.
 
Old 09-26-2006, 07:14 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,644

Rep: Reputation: Disabled
@fudam Nice . Thank you.
 
Old 02-13-2007, 11:02 PM   #6
RadioFanatic
LQ Newbie
 
Registered: Feb 2007
Posts: 8

Rep: Reputation: 0
An Amateur Radio Club Meeting? That is cool.

______________________
Amateur Radio Catalogs - Download Radio Catalogs and Radio Brochures for Free
 
Old 02-14-2007, 03:11 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
Originally Posted by fudam
Code:
30 2 8-14 * 4        /home/user/bin/script.fu
script.fu? Are you really a master of script.fu??? I wonder if there is anyone else who claims to be a master of script fu other than me!
 
  


Reply

Tags
cron, schedule


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with cron job parthcorp1 Linux - General 2 02-01-2005 11:37 AM
cron job? dr_zayus69 Linux - Newbie 14 12-01-2004 06:16 PM
CRON Job tommytomato Fedora 12 09-13-2004 12:38 AM
cron job working2hard Programming 6 07-28-2004 09:12 PM
Cron job T-Rex Linux - Newbie 1 09-26-2001 11:28 AM


All times are GMT -5. The time now is 02:32 AM.

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