8/13 I often take the battery out of my Powerbook 12", which lacks an
\_ so why are you doing this?
secondary battery. As a result, the date gets reset to 1970 if I
power it up after more than an hour. This cause anacron to think that
(minus) decades have passed and start runing all sorts of jobs
run only an hour ago. I want to add to /etc/rc so that
on restart if the date is ridiculous it will be set to, say, 1 hour
beyond the last "normal" time the machine sees. What's the easiest
way to find the "last normal time"?
\_ If you're using OS X there's an option to use the network time
server under System Preferences.
\_ /bin/date > /tmp/date -John
\_ That's way too easy. The answer should some how involve
sed/awk on the command with multiple layers of escaped chars.
\_ you could just run ntpdate on boot. -tom
\_ what if you have no net?
\_ Do you have sed/awk?
\_ Yes I have sed/awk/perl, no I usually do not have net
when this happens. Please enlighten me how /bin/date > /tmp/date
helps? During a graceful halt?
\_ put that in a cronjob. Then have the startup look at it. Doy? :) |