Unix Shell - Re: Daily scheduled job, but need to check if previous job has

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > November 2007 > Re: Daily scheduled job, but need to check if previous job has





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Daily scheduled job, but need to check if previous job has
Janis

2007-11-30, 7:35 am

On 30 Nov., 11:59, Eliot <e...@hotmail.com> wrote:

[ Please quote context! (re-inserted...)]

[vbcol=seagreen]
> I guess what I'm concerned about is that if the touch file
> .IN_PROGRESS
> is left behind due to some untidy shutdown then when cron kicks off
> the script again, it exits because it thinks a previous run is still
> in progress.


If the IN_PROGRESS file is present after the restart that means that
the prvious job has not completed, and should be re-initiated anyway
(as far as I understood your requirement).

Hmm.. - Now can two of your processes be active in parallel? Do you
want to prevent that?

Janis
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com