May this works for your case <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498171>.
/Jean Brouwers On Mar 5, 3:12 am, Marco <[EMAIL PROTECTED]> wrote: > Hello, > > I write a program control a device via RS232, I hope to add some code > to let the program canNOT be used by other people when one people > using. > > Can you tell me how to create pid.lock file in python? > Thank you!! > > -- > LinuX Power -- http://mail.python.org/mailman/listinfo/python-list