Re: Ensure only single application instance.

2008-08-30 Thread Larry Bates
Cameron Laird wrote: In article [EMAIL PROTECTED], Uberman [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote: Good afternoon all. I have an application/script which is launched by crontab on a regular basis. I need an effective and accurate way to

Ensure only single application instance.

2008-08-29 Thread Heston James
Good afternoon all. I have an application/script which is launched by crontab on a regular basis. I need an effective and accurate way to ensure that only one instance of the script is running at any one time. After a short look around the internet I found a couple of examples, such as this

Re: Ensure only single application instance.

2008-08-29 Thread Alex
SOP is to write the actual PID of the running process into the pidfile, then check to a) that the pidfile exists, and b) that the process referenced in the pidfile exists. if the pidfile exists, but the process does not, take over the pidfile and carry on. On Fri, Aug 29, 2008 at 9:51 AM, Heston

Re: Ensure only single application instance.

2008-08-29 Thread Timothy Grant
On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote: Good afternoon all. I have an application/script which is launched by crontab on a regular basis. I need an effective and accurate way to ensure that only one instance of the script is running at any one time. After a

Re: Ensure only single application instance.

2008-08-29 Thread Uberman
On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote: Good afternoon all. I have an application/script which is launched by crontab on a regular basis. I need an effective and accurate way to ensure that only one instance of the script is running at any one time. You could

Re: Ensure only single application instance.

2008-08-29 Thread Cameron Laird
In article [EMAIL PROTECTED], Uberman [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote: Good afternoon all. I have an application/script which is launched by crontab on a regular basis. I need an effective and accurate way to ensure that only one

Re: Ensure only single application instance.

2008-08-29 Thread Frank Millman
On Aug 29, 11:25 pm, Uberman [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 6:51 AM, Heston James [EMAIL PROTECTED] wrote: Good afternoon all. I have an application/script which is launched by crontab on a regular basis. I need an effective and accurate way to ensure that only one