loggin out automatically

Cameron Laird claird at lairds.com
Mon Nov 4 12:37:45 EST 2002


In article <PYgtuoA9YVx9EwVx at lampsacos.demon.co.uk>,
Ken Starks  <straton at lampsacos.demon.co.uk> wrote:
>In article <3DC451D3.4060907 at cyberspace.org>, trewornan
><treworn at cyberspace.org> writes
>>> 
>>> Some combination of the above, I'd say.  Some people might suggest that you 
>>> were silly to not just /try/ your command in a python interpreter, e.g.--
>>> 
>>
>>Good point but I don't have one running on linux and the installation of 
>> linux on another computer is being considered but is dependent on the 
>>feasibility of some system to limit access on a timed basis.
>>
>>Anyway thanks for letting me know why it won't work - I'll look more 
>>thoroughly at the linux documentation for possible answers.
>>
>>M
>>
>>
>You can get python to run a telnet session to the linux machine,
>without human intervention. change to super user, change to
>any other user, kill processes, whatever.
>Better not to send your root password though.
>
>
>-- 
>Ken Starks

So:  did that make it clear?  No, you cannot use
  system("logout")
or a close variation to achieve what you want, but,
yes, there are several Python-based ways to write it.
-- 

Cameron Laird <Cameron at Lairds.com>
Business:  http://www.Phaseit.net
Personal:  http://phaseit.net/claird/home.html



More information about the Python-list mailing list