On Thursday 14 June 2001 11:24, I was honoured by a missive from Rusty
Carruth that said :
> brian <[EMAIL PROTECTED]> wrote:
> > I have 2 MDK8.0 PC's that were shutoff when I came in yesterday morning.
> > I never turn them off and suspect that a power failure was responsible.
> > Is there anyway to tell what time they were shutoff?
What about a nice simple high-tech solution:
Add as root a cron job that runs every minute and puts the date in a file, by
adding to crontab the line:
* * * * * date > ~/date
And a line in your init file (/etc/rc.d/rcsysinit) a line
cp ~/date ~/lastdate
You should then get at each new boottime a copy, in ~/lastdate, of the
last ~/date file written before the crash.
And Bob's your Uncle.
Only drawback: the _huge_ CPU/HD load caused by the cron job ;-)
Cheers,
Ron the Frog, on the banks of the Paraguay River.
--
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
--
--- http://personales.conexion.com.py/~rolgiati ---