Lock file question

2011-06-22 Thread Steven Buehler
I am trying to use a lockfile so that the script can't be run again if it is already running. The below code works fine. The problem is that if my script runs with an argument for a config file with one person trying to run it as "script.pl first.cfg" and the second person trys to run it as "scri

Re: Lock file question

2011-06-22 Thread Jim Gibson
On 6/22/11 Wed Jun 22, 2011 3:02 PM, "Steven Buehler" scribbled: > I am trying to use a lockfile so that the script can't be run again if it is > already running. The below code works fine. The problem is that if my > script runs with an argument for a config file with one person trying to ru

RE: Lock file question

2011-06-22 Thread Steven Buehler
> -Original Message- > From: Jim Gibson [mailto:jimsgib...@gmail.com] > Sent: Wednesday, June 22, 2011 5:35 PM > To: beginners@perl.org > Subject: Re: Lock file question > > On 6/22/11 Wed Jun 22, 2011 3:02 PM, "Steven Buehler" > > scribbled: &g

Re: Lock file question

2011-06-22 Thread John W. Krahn
Steven Buehler wrote: From: Jim Gibson [mailto:jimsgib...@gmail.com] On 6/22/11 Wed Jun 22, 2011 3:02 PM, "Steven Buehler" scribbled: I am trying to use a lockfile so that the script can't be run again if it is already running. The below code works fine. The problem is that if my script