Arexx (10/109)

From:Robert Wilson
Date:16 Aug 99 at 20:47:59
Subject:Re: Loop Until Online

From: Robert Wilson <robert@dynamix.force9.co.uk>

On 15-Aug-99, Mike Cardwell wrote:

> I know that there is probably a much shorter way of doing this. My main
> problem with it however is that a requestor asking for TCP: pops up every
> 5 seconds when I don't have my TCP stack loaded.

You could test to see if TCP: is mounted first with the following

/* */
address 'COMMAND'
'assign >nil: TCP: EXISTS'
if RC ~= 5 then do
say 'TCP: is mounted ;-)'
/* do online check now that we know TCP: is mounted */
end
else
say 'TCP: isn''t mounted'

Rob



robert@dynamix.force9.co.uk
http://www.dynamix.force9.co.uk

--------------------------- ONElist Sponsor ----------------------------

Having difficulty getting "in synch" with list members?
http://www.onelist.com
Try ONElist's Shared Calendar to organize events, meetings and more!

------------------------------------------------------------------------
ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com