Re: How can Emacs get a unique ID per Linux reboot?

Gregory Maxwell (linker@z.ml.org)
Tue, 1 Jun 1999 16:24:02 -0400 (EDT)


On Tue, 1 Jun 1999, Riley Williams wrote:

> In that case, try the following variant thereof...
>
> > echo $[`TZ=UTC date +%s`-`cut -d . -f 1 < /proc/uptime`]
>
> OK, if you're going to deliberately mangle your system clock in some
> random way, then that will break, but if you're referring to changes
> from winter to summer time and back again, then the above will deal
> with that quite happily...
>
> Best wishes from Riley.

You could improve the situation more by rounding the boot time to the
nearest hour.. (so xntpd prob wont mess you up)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/