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

Re: cron on a system without a hardware persistant clock



On Tue, 27 Sep 2011 10:11:33 +0100, David wrote in message 
<[🔎] 201109271011.33513.david.goodenough@btconnect.com>:

> Does anyone know if there is a way to tell and of the crons to
> ignore unset times?

..keep your script _simple_, on shutdowns or reboots etc 
(and unless you have very short life disks, every second,)  
'date -u >/path/to/last/known/time ', and on boot-up, 
'date -suf /path/to/last/known/time ', or somesuch.

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.


Reply to: