Narveson has asked for the wisdom of the Perl Monks concerning the following question:
Either another instance of utility.pl is already running, or the file semaphore.txt needs to be deleted.If the semaphore file doesn't exist, the utility first writes it, then does its work (which can take minutes), then unlinks it. Is this the best way to do this, or can somebody suggest a better way?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Check for another running instance of the same program
by LanX (Saint) on May 13, 2013 at 22:15 UTC | |
Re: Check for another running instance of the same program
by dd-b (Pilgrim) on May 13, 2013 at 22:34 UTC | |
Re: Check for another running instance of the same program
by vinoth.ree (Monsignor) on May 14, 2013 at 03:18 UTC | |
Re: Check for another running instance of the same program
by ww (Archbishop) on May 13, 2013 at 22:16 UTC | |
Re: Check for another running instance of the same program
by scorpio17 (Canon) on May 14, 2013 at 14:03 UTC | |
Re: Check for another running instance of the same program
by Anonymous Monk on May 14, 2013 at 05:01 UTC | |
Re: Check for another running instance of the same program
by locked_user sundialsvc4 (Abbot) on May 14, 2013 at 02:25 UTC |