Re: Script/Process Queuing

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

 



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

----- Original Message ----
From: David Cary Hart <Fedora@xxxxxxxxxxx>
To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
Sent: Wednesday, July 12, 2006 4:14:39 PM
Subject: Script/Process Queuing

I have some bash scripts that get triggered by swatch passing a
variable. At some point, if there are too many calls to the same
script, things go haywire.

I am trying to figure out how to stack requests so that the second
one won't execute until the first on exits.

Any ideas from some of the gurus out there?

--
      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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


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

  Powered by Linux