[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: Catching user switching and getting current active user from root
From:       James Mills <prologic () shortcircuit ! net ! au>
Date:       2010-11-30 23:04:10
Message-ID: AANLkTin+0Uc8aaYvSAjDxvV+sJ2L8FCXrcc20azUpuu_ () mail ! gmail ! com
[Download RAW message or body]

On Wed, Dec 1, 2010 at 8:54 AM, Tim Harig <usernet@ilthio.net> wrote:
> Well you could use inotify to trigger on any changes to /var/log/wtmp.
> When a change is detected, you could check of deltas in the output of "who
> -a" to figure out what has changed since the last time wtmp triggered.

This is a good idea and you could also
make use of the following library:

http://pypi.python.org/pypi?:action=search&term=utmp&submit=search

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic