[comp.sys.amiga] waiting on events in scripts

scot@amigash.UUCP (Scot L. Harris) (10/19/89)

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