🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.tech.amiga
Article #568

Re: Arexx again

#568
From: Neil Bothwick
Date: Fri, 11 Jun 1999 00:00
54 lines
2335 bytes
Stephen Bridges said, 

> Neil Bothwick in a moment of madness wrote:

>> setclip('downloads',0)

> OK I think you are crediting me with more Arexx knowledge than I have :-)

Or had.

> Anyway I've looked up setclip and getclip and this is what I think you
> mean.

> You're making a Clip List name of 'downloads' and giving it the value
> of 0.

Yes.

>> do while getclip(downloads) > 0 
>> call delay(25)

> Here you're reading the Clip List 'download' and delaying until its
> value is geater than 0. The original script won't continue (exit) until
> both of the other scripts have finished.

Delaying until it's value is equal to zero.

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

> At the start of each script you're adding 1 to the Clip List 'download'
> and at the end you're taking it away. so when both exit the main script
> will carry on.

Yes.

> Is that how it is meant to work? 

So it's not more arexx knowledge than you have, not now :)

The other way to do it is to use environment variables, but you have
to use an extra library to use those easily in arexx. So clips are
easier, although they use slightly more memory. The other thing to
watch for with get/setclip is that the clip name is case-sensitive.


Neil
-- 
Neil Bothwick, Warrington, England - http://www.wirenet.co.uk

Isn't it a bit unnerving that doctors call what they do "practice?"
Technical Details
Message-ID: <1608.831T1963T14054257neil@wirenet.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <b1.m0.I22sID1aki45uDP55.NR@bh01.demon.co.uk> <1607.830T1531T14163821neil@wirenet.co.uk> <M1.J1.J22tJbeWZA45Suy45.NR@bh01.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/11
Message-ID: <1608.831T1963T14054257neil@wirenet.co.uk>
X-Deja-AN: 488580536
References: <b1.m0.I22sID1aki45uDP55.NR@bh01.demon.co.uk> <1607.830T1531T14163821neil@wirenet.co.uk> <M1.J1.J22tJbeWZA45Suy45.NR@bh01.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 929140651 194.119.174.218 (Fri, 11 Jun 1999 23:37:31 BST)
X-Real-Host: jverarg.h-arg.pbz
Organization: Wirenet Amiga Internet
NNTP-Posting-Date: Fri, 11 Jun 1999 23:37:31 BST
Newsgroups: demon.tech.amiga