Article View: demon.tech.amiga
Article #572Re: Arexx again
From: Neil Bothwick
Date: Sun, 13 Jun 1999 00:00
Date: Sun, 13 Jun 1999 00:00
36 lines
2011 bytes
2011 bytes
Dave Sparks said,
> >>> and put call setclip('downloads',getclip(downloads)+1)) at the start
> >>> of each of the mail and news scripts and call
> >>> setclip('downloads',getclip(downloads)-1)) at the end.
> It looks to me as if there's still a (very small) chance that
> things can go wrong. Isn't the following scenario posible?
> script 1 script 2
> -------- --------
> getclip
> (value is 0) getclip
> (value is 0)
> add 1
> (value is 1) add 1
> (value is 1)
> setclip
> (saving 1) setclip
> (saving 1)
Yes, this isn't the method I use but it seemed a good idea on first
thinking about it. I use Thor's GetTCP and SendTCP so it's easiest to
simply check for the names in the process list.
A safer option would be to have each script set a separate clip to 1
at the start and 0 on exit, then check that the sum of the clips is
zero.
Neil
--
Neil Bothwick, Warrington, England - http://www.wirenet.co.uk
DOS never says "EXCELLENT command or filename"...
Technical Details
Message-ID:
<1222.833T2617T545415neil@wirenet.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<b1.m0.I22sID1aki45uDP55.NR@bh01.demon.co.uk> <1607.830T1531T14163821neil@wirenet.co.uk> <M1.J1.J22tJbeWZA45Suy45.NR@bh01.demon.co.uk> <1608.831T1963T14054257neil@wirenet.co.uk> <N.19990612.idlj@sisyphus.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1160fd,4a7c0a01d4d2526 X-Google-Attributes: gid1160fd,public From: "Neil Bothwick" <postmaster@wirenet.co.uk> Subject: Re: Arexx again Date: 1999/06/13 Message-ID: <1222.833T2617T545415neil@wirenet.co.uk> X-Deja-AN: 489040768 References: <b1.m0.I22sID1aki45uDP55.NR@bh01.demon.co.uk> <1607.830T1531T14163821neil@wirenet.co.uk> <M1.J1.J22tJbeWZA45Suy45.NR@bh01.demon.co.uk> <1608.831T1963T14054257neil@wirenet.co.uk> <N.19990612.idlj@sisyphus.demon.co.uk> X-Complaints-To: news@u-net.net X-Info: The UK's first Amiga-only Internet Access Provider X-Trace: newsr2.u-net.net 929267570 194.119.174.218 (Sun, 13 Jun 1999 10:52:50 BST) X-Real-Host: jverarg.h-arg.pbz Organization: Wirenet Amiga Internet NNTP-Posting-Date: Sun, 13 Jun 1999 10:52:50 BST Newsgroups: demon.tech.amiga