[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ntpdate & script to update host at random time



On Fri, Jun 03, 2005 at 11:36:41AM -0400, jmr_071769 wrote:
> hello again with a debian question.
> 
> i'd like to be able to have a few machines 'apt-get update' themselves
> at a random time near/around midnight. how can i go about this with
> another easy script?
> 
A random time around midnight?  You could write a crontab that runs at
23:50 and begins with "sleep $(( RANDOM % 1200 ))"


-- 
Depend on the rabbit's foot if you will, but remember, it didn't help
the rabbit.
		-- R.E. Shay



Reply to: