Re: Catching user switching and getting current active user from root on linux

2010-12-30 Thread Aahz
In article ff3a2b89-2586-43d2-ae5a-490384687...@32g2000yqz.googlegroups.com, mpnordland mpnordl...@gmail.com wrote: First, to pacify those who hate google groups: What is a good usenet client? trn3.6 ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of

Re: Catching user switching and getting current active user from root on linux

2010-12-23 Thread mpnordland
Ok, thank you. I will go look at the resources mentioned. -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-22 Thread mpnordland
ok, I'll give one more chance. First, to pacify those who hate google groups: What is a good usenet client? second, How should I set up this proxy so that when a connection is made, it request's authentication, and then log's the request, if authentication is not gotten, how do I have it block (or

Re: Catching user switching and getting current active user from root on linux

2010-12-22 Thread Emile van Sebille
On 12/22/2010 11:28 AM mpnordland said... ok, I'll give one more chance. ... which probably won't be enough -- this is potentially a huge question you're asking with lots of little bits to put together. I have an installation where I did somthing similar seven-ish years ago using squid,

Re: Catching user switching and getting current active user from root on linux

2010-12-22 Thread Steve Holden
On 12/22/2010 2:28 PM, mpnordland wrote: ok, I'll give one more chance. First, to pacify those who hate google groups: What is a good usenet client? Thunderbird is OK for me (I follow about three groups normally). I access the comp.lang.python group vie the Gmane (Main) service, where for some

Re: Catching user switching and getting current active user from root on linux

2010-12-22 Thread Steven D'Aprano
On Mon, 20 Dec 2010 20:35:54 -0500, Steve Holden wrote: On 12/20/2010 12:54 PM, mpnordland wrote: I give up, I will never try to use a usenet group again. For the ones of you who tried to help thank you. You helped to identify some of my troubles, as for you @usernet, you are a troll Don't

Re: Catching user switching and getting current active user from root on linux

2010-12-22 Thread Stefan Sonnenberg-Carstens
Am 22.12.2010 20:28, schrieb mpnordland: ok, I'll give one more chance. First, to pacify those who hate google groups: What is a good usenet client? second, How should I set up this proxy so that when a connection is made, it request's authentication, and then log's the request, if

Re: Catching user switching and getting current active user from root on linux

2010-12-20 Thread mpnordland
I give up, I will never try to use a usenet group again. For the ones of you who tried to help thank you. You helped to identify some of my troubles, as for you @usernet, you are a troll -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-20 Thread Steve Holden
On 12/20/2010 12:54 PM, mpnordland wrote: I give up, I will never try to use a usenet group again. For the ones of you who tried to help thank you. You helped to identify some of my troubles, as for you @usernet, you are a troll Don't give up after one experience. Usenet can be really useful

Re: Catching user switching and getting current active user from root on linux

2010-12-13 Thread mpnordland
I think I do understand multiuser systems, although I'm sorry I did not make my self clear. Yes, I understand that there can be multiple people logged in, and yes if you really wanted to, you could login as yourself as many times as you want. This is not a server based program, it is intended for

Re: Catching user switching and getting current active user from root on linux

2010-12-13 Thread Carl Banks
On Dec 13, 3:04 pm, mpnordland mpnordl...@gmail.com wrote: I think I do understand multiuser systems, although I'm sorry I did not make my self clear. Yes, I understand that there can be multiple people logged in, and yes if you really wanted to, you could login as yourself as many times as

Re: Catching user switching and getting current active user from root on linux

2010-12-13 Thread Tim Harig
On 2010-12-13, mpnordland mpnordl...@gmail.com wrote: I think I do understand multiuser systems, although I'm sorry I did not make my self clear. Yes, I understand that there can be multiple people logged in, and yes if you really wanted to, you could login as Apparantly you do not. There is

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread mpnordland
sorry, I've been busy, it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread mpnordland
about the pyutmp, is the most recent entry at the top or bottom of the file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread Tim Chase
On 12/11/2010 01:43 PM, mpnordland wrote: it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. The problem is that multiple users can be logged on at the same time. You might be

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread Tim Harig
Mr. Chase, I really wouldn't even bother wasting my time on this one. He asked an incomplete question to start with; so, the replies that he received were insufficient to solve his problem. He still has not provided enough information to know how to answer his question propery. He doesn't

Re: Catching user switching and getting current active user from root on linux

2010-12-11 Thread Steven D'Aprano
On Sat, 11 Dec 2010 11:43:13 -0800, mpnordland wrote: sorry, I've been busy, it's on linux, and current active user is the user currently using the computer. My program needs to switch log files when a different user starts using the computer. I think you have missed what people are trying to

Re: Catching user switching and getting current active user from root on linux

2010-12-01 Thread Tim Golden
On 30/11/2010 22:47, mpnordland wrote: I have situation where I need to be able to get the current active user, and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type of user switch my script needs to know. If it's Windows

Re: Catching user switching and getting current active user from root on linux

2010-12-01 Thread Grant Edwards
On 2010-11-30, mpnordland mpnordl...@gmail.com wrote: I have situation where I need to be able to get the current active user, How do you define current active user? and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type

Re: Catching user switching and getting current active user from root on linux

2010-12-01 Thread Mark Wooding
Grant Edwards inva...@invalid.invalid writes: On 2010-11-30, mpnordland mpnordl...@gmail.com wrote: and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type of user switch my script needs to know. What do you do when

Catching user switching and getting current active user from root on linux

2010-11-30 Thread mpnordland
I have situation where I need to be able to get the current active user, and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type of user switch my script needs to know. -- http://mail.python.org/mailman/listinfo/python-list

Re: Catching user switching and getting current active user from root on linux

2010-11-30 Thread Tim Harig
On 2010-11-30, mpnordland mpnordl...@gmail.com wrote: I have situation where I need to be able to get the current active user, and catch user switching eg user1 locks screen, leaves computer, user2 comes, and logs on. basically, when there is any type of user switch my script needs to know.

Re: Catching user switching and getting current active user from root on linux

2010-11-30 Thread James Mills
On Wed, Dec 1, 2010 at 8:54 AM, Tim Harig user...@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