On 29/09/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Tim Williams wrote: > > > def check_lock(): > > import os, sys > > try: > > os.remove({filename}) > > except: > > if "Permission denied" in sys.exc_info()[1]: > > print 'This program is already running' > > sys.exit() > > f_lock = open({filename},'w') > > have you actually tried this on a Unix system ?
Nope , I don't have one anywhere close. I'm M$ only. I did forget disclaimers like "try something like" and "not tested" etc etc - my bad !!! So that I know my mistake, which bit fails (the text from sys.exc_info()[1]?? ) , or is it all complete rubbish - and not do-able - on a *nix system ? :) -- http://mail.python.org/mailman/listinfo/python-list