LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Third Thursday Cron Job (http://www.linuxquestions.org/questions/linux-general-1/third-thursday-cron-job-484485/)

stancol 09-17-2006 08:53 PM

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.

Quigi 09-18-2006 11:24 AM

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?

fudam 09-18-2006 05:46 PM

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

archtoad6 09-25-2006 08:00 AM

And BTW, it's "MEPIS" not "MEPHIS" or "MEMPHIS"
-- 5 letters, no duplicates, difficult to get right at first. :)

JZL240I-U 09-26-2006 07:14 AM

@fudam Nice :). Thank you.

RadioFanatic 02-13-2007 11:02 PM

An Amateur Radio Club Meeting? That is cool.

______________________
Amateur Radio Catalogs - Download Radio Catalogs and Radio Brochures for Free

colucix 02-14-2007 03:11 AM

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??? :jawa: I wonder if there is anyone else who claims to be a master of script fu other than me! ;)


All times are GMT -5. The time now is 11:29 AM.