TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: R.WIESER
date: 2019-11-05 18:44:00
subject: Re: How to check if the c

Tauno,

> You do need a piece of C code, run as root or suid root, reading the
> external hardware clock and setting the internal one with a simple
> system call.

1) Thats an answer to a question I never asked. :-(

2) I already did something like that - a year or so ago.

3) Just this week I wrote pretty much that, using python.

4)
> Your problem is that the setting of system time needs root privileges.

Nope, not one of my problems. Not now, not in 2) and not in 3) either.


Now, do you have /any/ idea how to detect that the clock has been written to
after the last time the Pi has been switched on ?   As *thats* the problem
I'm currently trying to solve - as shown in the title of this message.

Regards,
Rudy Wieser

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.