On 10/3/07, Elizabeth Cortell <[EMAIL PROTECTED]> wrote:

> I suggest (untested, but we do something like this in the office):
> Upon startup, check for the existence of a lockfile with agreed-upon name in 
> some tmp directory.  If it exists, exit immediately; otherwise create the 
> file.  Remove the file at end of execution or upon death of script (in the 
> END block).
>
> I haven't thought out all the ways that could go wrong. Comments welcome.

Will an END block get executed even if the script exits through an
error such as calling an undefined function?

-- 
Mark Wagner

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to