home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!unixhub!slacvm!wglp09
- From: WGLP09@SLACVM.SLAC.STANFORD.EDU
- Newsgroups: comp.sys.amiga.datacomm
- Subject: Re: Scripts from Scripts
- Message-ID: <92208.005049WGLP09@SLACVM.SLAC.STANFORD.EDU>
- Date: 26 Jul 92 08:50:49 GMT
- References: <1992Jul21.023434.13835@hfsi.uucp>
- <92203.155119WGLP09@SLACVM.SLAC.STANFORD.EDU>
- <1992Jul23.212343.27054@hfsi.uucp>
- Organization: Stanford Linear Accelerator Center
- Lines: 26
-
- If you write everything in ARexx, there's no particular problem making
- particular sections common. The only thing I can think of to sync up
- a bunch of scripts is to use traps. You'ld need three scripts in that
- case, schematically as follows:
-
- A: trap add 42 install nothing (@C.scp; trap remove 42)
- @B.scp
-
-
- B: contains common stuff.
- trap cause 42
-
- C: contains special stuff, goes with A.
-
-
- You run script A, which installs a trap (id 42), and then it runs the
- common stuff, in B. B always "cause"s trap 42 at the end, which
- then results in script C being run, and the trap to be removed.
-
- A bit complicated, but it should work. Someday, I guess I should
- build in a sync command of some sort. Oh well.
-
-
- Willy.
- ----------
- Willy Langeveld - Bitnet: WGLP09 @ SLACVM - BIX: langeveld
-