Hi,
I'm just teaching myself some Python and at the moment I want to program some sort of parental control thingy.
So far I managed to create a script that runs automatically on startup (/etc/rcS and /etc/init.d) and one that runs automatically on shutdown so I can monitor how long the computer is turned on.
But now I want to monitor which user is logged on when and for how long, so I've come up with two ideas:
- A script is run on logon - that needs to be run as root though so it can't be cancelled
- A signal is sent to the script on logon that is run on startup
So now my only problem is to program one of these - any ideas?
Bookmarks