[Coco] Looping in Nitros9 Shell

Michael R. Furman n6il at ocs.net
Sun Jun 19 00:27:23 EDT 2016


Robert Thanks!  I took another read of the ShellPlus 2.1 manual earlier this afternoon.  The syntax is a bit wacky but I finally figured it out.  Doing this for a burn-in test of a drivewire setup.  


var.1=0
*100
inc.1
echo === BEGIN %1 ===
date -t
ident os9boot
date -t
echo === END %1 ===
goto 100
—

Michael R. Furman
Email: n6il at ocs.net
Phone: +1 (408) 480-5865


> On Jun 18, 2016, at 5:46 PM, Robert Gault <robert.gault at att.net> wrote:
> 
> Michael Furman wrote:
>> I want to write a simple infinite loop to run a command in the Nitros9 Shell.  I tried RTFMing a bit and couldn't figure it out.  The ShellPlus documentation I could find seems to neglect mentioning the basics of what the shell can do and mostly describes features that never made it to the Nitros9 version.
>> 
>> Sent from my Antique Model A1219 iPad
>> 
> 
> A script I use for looping contains:
> 
> *main
> ...
> goto main
> 
> and also
> 
> *loop
> ...
> goto loop
> 
> Either one of these can loop indefinitely or can have an exit if a condition is met. Just enclose the looping routine within a conditional, ex.:
> 
> if +%3<>00000
> ...
> endif
> 
> The above quits when var.3=00000
> 
> Robert
> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list