Re: Script/Process Queuing

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

 



On Wed, 12 Jul 2006 13:23:22 -0700 (PDT), Tom Spec
<samag70-ignore@xxxxxxxx> opined:
> Something like this?
> 
> while lock != ok
> do
> if /tmp/script.lock exists
>  sleep 60
> else
>  lock=ok
> done
> 
> create /tmp/script.lock
> execute script
> remove /tmp/script.lock
> 
I tried something like that with an environment variable. That works
with two requests but the problem occurs with 20 to 30
virtually simultaneous requests. So far the only thing that works is
to use a similar approach with #at but that seems terribly
inelegant.

-- 
      Do NOT Send Email to <spam trap> Fedora@TQMcube,com
Our DNSRBL - Eliminate Spam at The Source: http://www.TQMcube.com
               Don't Subsidize Criminals: http://boulderpledge.org


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux