[Tutor] how to know if process is running?
shawn at skrite.net
Tue Jul 28 18:22:02 CEST 2009
Thanks for the pointers Wayne, Tino,
Looks easier than i had thought.
On Tue, Jul 28, 2009 at 11:10 AM, Tino Dai<oberoc at gmail.com> wrote:
> On Tue, Jul 28, 2009 at 11:45 AM, shawn bright <shawn at skrite.net> wrote:
>> So, my question is, how can i write something that will know if there
>> is an instance of that something already running?
> There are a lot of ways to do this. Writing to a file on the filesystem and
> having the 2nd process check for that file. Have the thread write to a log
> file every x seconds and having the 2nd process check for that. Having some
> sort of ipc mechanism set up (http://docs.python.org/library/ipc.html). Have
> a semaphore mechanism set up.
More information about the Tutor