Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!rpi!crdgw1!ge-dab!peora!tarpit!amigash!scot From: scot@amigash.UUCP (Scot L. Harris) Newsgroups: comp.sys.amiga Subject: waiting on events in scripts Message-ID: <1292.AA1292@amigash> Date: 19 Oct 89 02:25:37 GMT Followup-To: comp.sys.amiga Lines: 21 I would like to thank Rob Peck for providing a workable solution to my orginal question about having a script wait for completion of an event or multiple events. Instead of using a file as a signal and having the parent script do a wait-loop I used a pipe as a kind of semaphore. The parent script once it has started the others as background tasks does a type pipe:a (or whatever pipe name desginated). This causes the parent to halt until somebody writes to that pipe. One question I do have about this method: does the Amiga OS waste any CPU resources while that script is trying to read the pipe? Thanks again Rob for the quick reply. -- _ /// /_\ Scot L. Harris !hoptoad!peora!{tarpit,rtmvax}!amigash!scot \XX/ / \ M I G A [If you can keep your head when all about you are losing theirs, perhaps you have misunderstood the situation.]