Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 1999 22:33:36 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        wjm@gate.net (William Melanson)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Crontab entry question...
Message-ID:  <199908170233.WAA09458@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.A41.4.03.9908162135220.152216-100000@inca.gate.net> from William Melanson at "Aug 16, 99 09:58:12 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
William Melanson wrote,
> 
> This is the current crontab enrty I have to fire up a simple shell
> script:
> 
> #Run at 8:30pm, Monday August 16th
> 30 20 16 8 mon /usr/home/user1/script.sh
> 
> My question is how do I (would you) modify this entry to run this 
> script every 10mins (open ended) starting at say... 8:30pm same day 
> and month?   

It depends on just how 'open ended' you mean. Do you want it to run
the rest of the day, every ten minutes?

 30,40,50    20 16 8 /usr/home/user1/script.sh
 0-59/10  20-23 16 8 /usr/home/user1/script.sh

Or do you _really_ want to run this once and just keep looping? Maybe
you are better off using at(1),

% at 2030 8/16
while :; do
/usr/home/user1/script.sh
sleep 600
done

-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908170233.WAA09458>