Re: Detect OS shutdown or user logout across different operating systems

2010-04-27 Thread python
Hi Tim, > Doubt v. much if there's anything x-platform. I recently wrote-up > the work done my Klaas Tjebbes (sp?) which I think will do what > you want: http://timgolden.me.uk/python/win32_how_do_i/track-session-events.html Looks good - I'll study this code. Thanks for the help! Cheers, Malcol

Re: Detect OS shutdown or user logout across different operating systems

2010-04-27 Thread Tim Golden
On 27/04/2010 03:09, pyt...@bdurham.com wrote: Is there a OS portable way to have a Python script detect when its operating system is shutting down or a user is logging out? If not, any Windows specific tips on how to detect these events? Thank you, Malcolm Doubt v. much if there's anything

Re: Detect OS shutdown or user logout across different operating systems

2010-04-26 Thread James Mills
On Tue, Apr 27, 2010 at 12:09 PM, wrote: > Is there a OS portable way to have a Python script detect when its operating > system is shutting down or a user is logging out? In the Linux world, you would normally create an rc/init style script that is invoked at boot and shutdown (usually by calli

Detect OS shutdown or user logout across different operating systems

2010-04-26 Thread python
Is there a OS portable way to have a Python script detect when its operating system is shutting down or a user is logging out? If not, any Windows specific tips on how to detect these events? Thank you, Malcolm -- http://mail.python.org/mailman/listinfo/python-list