Now I understand it. Couldn't figure out how it was meant to terminate as written.
Thanks i ... ------ Original Message ------ Received: Thu, 15 May 2008 05:46:41 AM BST From: Glenn Knickerbocker <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: resetting fromtarget/totarget? On Thu, 15 May 2008 00:22:44 +0100, Ian Worthington wrote: >This looks like what I need, though I'm not sure I really understand how it >works yet. Which might explain why, even following your advice, it won't >terminate. Well, that's because of the DO FOREVER, of course. Rob uses SIGNAL ON ERROR to break out of those when PEEKTO sees EOF. Personally, I figure I'd get myself into far more trouble than I'd ever save that way, so I check the return codes myself: 'peekto' Do while rc = 0 'callpipe' etc. If rc = 0 then 'peekto' End Then it's easy to adjust for cases where I want to tolerate specific nonzero return codes from CALLPIPE (say, 28 from a STATE stage). ¬R
