From: Daniel Berger Date: 2008-05-21T22:40:49+09:00 Subject: Re: Ensuring only one instance of a script is running On May 20, 10:45 pm, "ara.t.howard" wrote: > On May 20, 2008, at 10:25 PM, Daniel Berger wrote: > > > The first run will work, but trying to start the program up again will > > fail instantly because of the lock on DATA. I should probably do some > > cleanup there, too, but I thought I'd toss this out there and see if > > this is of interest to anyone. > > > Or was I was recovering from a hangover in college when they mentioned > > this trick in class? Anyway, there you go. > > quite interesting, i use self-locking scripts quite often, but DATA is   > one step shorter ;-) > > thanks for the tip. You're welcome. :) I've wasted a lot of time with pid files... Regards, Dan