That is an extremely easy way of doing it.  I am kicking myself in the ass for
not thinking of it myself...

Thanks.

Bug Hunter wrote:

>   If you create a lock file (perhaps in /var/lock), with the program's
> file name, ending in .lck, you can check for that at the beginning of the
> perl script and exit immediately if that file exists.  At the end of the
> perl script delete the file.
>
>   You can still have a race condition if two people click on the button at
> the same instance, but it is highly unlikely, and can be disregarded for
> your purposes.
>
> bug

Reply via email to