Run "set autologout" or otherwise enable automatic logout on time expiry for console users.
Then simply use the "last" command and diff them.
Main Topics
Browse All TopicsHi,
I am a manager and would like to know my worker's log-in, log-out time *** BETWEEN HIS SCREEN LOCKS ***.
This question was not for a first-time log-in session because IT workers (and users) were rarely log off their computer at the end of the day, instead they just used screen-lock.
In sumary, I would like to know how much time my workers work (during daytime and after hours). Remember they never log off completely (in Linux, Gnome or KDE environment).
Thanks,
John
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Screen lock is on the client PC, and therefore there is no central access to information about it.
Only option if this *really* is the approach that you are going for is to change the filename xlock to xlock main, and create a new xlock file, make it executeable, and put in a script that for example:
wget http://www.myserver.com/?c
before calling xlock .
You'd need to repeat this for xscreensaver etc.
Another idea is that you could try adding 'nagios' to 'monitor' client PCs:
www.nagios.org
and then see when the CPU usage drops....then again, some of these screen savers use a huge amount of processing power. Obviously with either of these ideas, you have all the social, privacy and associated legal complications that may arise.
HTH:)
Business Accounts
Answer for Membership
by: DVBPosted on 2006-05-22 at 03:25:19ID: 16733078
Hmmm, I have this session running for about two weeks now.
The first question I would ask is why you are doing this (there is a possible technical solution, but sometimes social solutions are just better). If people are getting work done, then you shouldn't have major objections to their moving away from the screen at times.