Re: Triggering script from cron or web client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, 8 Jul 2011, Les Mikesell wrote:

> To: centos@xxxxxxxxxx
> From: Les Mikesell <lesmikesell@xxxxxxxxx>
> Subject: Re:  Triggering script from cron or web client

...snip...

> You already have a DB connection in common - can't the update script
> itself lock something in the DB while it works?    Or just make the web
> script wait for the cron job to complete if you are anywhere near the
> time for it to run.

Sounds like it needs to be one main script, that branches 
depending on how it is called - ie from cron or ssh or curl 
or whatever?

Maybe saving the current state of the script in an ENV 
variable whenever the script is run, check for the current 
status of the script before making a decision on what to do, 
when it is called next time?

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux