On Mon, 20 Sep 2004 13:44:53 +0800, fooler <[EMAIL PROTECTED]> wrote:

> > 0   0   1-7   *   5   <insert your command here>
> the above cron entry will always execute at time 00:00 every friday and day
> 1 to 7 of the month...
[snipped]

Oops. I forgot that one.

I guess put the command in the bash script and then have this:

#!/bin/bash

DATE=`date +%d`

[ $DATE -ge 1 ] && [ $DATE -le 7 ] &&  <insert command here>



then on the crontab:


0 0 * * 5 /path/the_script_mentioned_above

-- 
Gideon N. Guillen
[EMAIL PROTECTED]

Take back the web! Download Firefox Today!
http://www.spreadfirefox.com/?q=affiliates&amp;id=6670&amp;t=58
--
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

Reply via email to