----- Original Message ----- From: "Gideon N. Guillen" <[EMAIL PROTECTED]> To: "Philippine Linux Users Group Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, September 20, 2004 1:17 PM Subject: Re: [plug] every 1st Friday of every month
> On Mon, 20 Sep 2004 12:24:33 +0800, Jett Tayer <[EMAIL PROTECTED]> wrote: > > need to do this via cron. tulong naman. > > from "man -S5 crontab": > 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) > > Assuming you need ot run on first friday of the month at 12am: > > 0 0 1-7 * 5 <insert your command here> > > First Friday of month will fall on days 1-7 of a month. (Anyone, > correct me if I'm wrong). the above cron entry will always execute at time 00:00 every friday and day 1 to 7 of the month... cron rules to execute the command is that: (minute) AND (hour) AND (month of year) AND ( (day of month) OR (day of week) ) = TRUE the correct entry should be: 0 0 * * 5 /path/program where the /path/program execute the intended command if the day of the month is LESS THAN 7 and not equal or greater than that :-> fooler. -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
