Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2007 13:29:12 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: cron job every 5 hours
Message-ID:  <20070718132912.12f9294f@gumby.homeunix.com.>
In-Reply-To: <469D9CC2.4040902@u.washington.edu>
References:  <000f01c7c56d$da44d640$0200a8c0@satellite> <200707160427.l6G4Rb5q090225@banyan.cs.ait.ac.th> <469AFA30.4050504@u.washington.edu> <200707180233.l6I2XJrw097658@banyan.cs.ait.ac.th> <m3sl7miegg.fsf@pc7.dolda2000.com> <469D9CC2.4040902@u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 17 Jul 2007 21:53:22 -0700
Garrett Cooper <youshi10@u.washington.edu> wrote:

>     Shell scripts with sleep won't give you exactly the 5 hours you 
> desire, but should come close (within 1-5 seconds of actual time 
> depending on your host PC's precision, and whether or not your RTC 
> battery is dead ;)..).

I don't think the RTC battery being dead would affect sleep times. 5
hours in 1970 (or whenever) are the the same length as 5 hours now.

If you want to anything more complex than can be achieved with cron,
it's probably better to install one of the cron replacement ports,
such as fcron. I don't see any reason why one of these couldn't run
in parallel with the existing cron, or you can turn-off cron in rc.conf.




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