Thanks for the pointers Wayne, Tino, Looks easier than i had thought. sk
On Tue, Jul 28, 2009 at 11:10 AM, Tino Dai<obe...@gmail.com> wrote: > On Tue, Jul 28, 2009 at 11:45 AM, shawn bright <sh...@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. > (http://www.python.org/doc/2.5.2/lib/semaphore-objects.html) > > HTH, > Tino > > > > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor