The highly esteemed merlyn wrote something you could maybe use. I don't know if it will fit your exact problem, but his Highlander script restricts invocation to one instance by using a flocked sentinel file.
While searching with the Super Search, I found out that it dosen't search the Code Catacombs - maybe that could be changed by The Powers That Be :-)
In reply to Re: Locking a script
by Corion
in thread Locking a script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |