From: "ara.t.howard" Date: 2008-05-21T13:45:59+09:00 Subject: Re: Ensuring only one instance of a script is running 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. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama