Script/Process Queuing

Tom Spec samag70-ignore at yahoo.ca
Wed Jul 12 20:23:22 UTC 2006


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 at TQMcube.com>
To: For users of Fedora Core releases <fedora-list at redhat.com>
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 at 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 at redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060712/f4d28768/attachment-0001.htm>


More information about the fedora-list mailing list