[svlug] need an uptime birthday script
Robert Hajime Lanning
lanning at lanning.cc
Fri Jun 19 16:16:51 PDT 2009
Daevid Vincent wrote:
> Oh no! I just had a horrible epiphany. If I reboot one of the servers, then
> I still have an "at" entry and my uptime has now changed -- a double whammy.
> Ratz! Looks like back to the drawing board and I'll have to use a crontab
> and parse the uptime every minute every day doing the '365' trick as
> previously mentioned. Ugh... I'm spending too much time on this aren't I?
> Someone stop me!
>
> d
The cron job I was talking about, is the simplest. One script, one
touch point.
Otherwise, you can have two scripts. One at boot to submit the at job
and one is the at job.
Have the at job actually test, to make sure uptime is correct. And it
should also submit a new at job for the next anniversary.
--
END OF LINE
--MCP
More information about the svlug
mailing list