Thanks Rick: just the trick. i
------ Original Message ------ Received: 04:13 PM COT, 09/16/2009 From: Rick McGuire <object.r...@gmail.com> To: Open Object Rexx Users <oorexx-users@lists.sourceforge.net> Subject: Re: [Oorexx-users] Redirection problems, take 2 > Use SIGNAL ON NOTREADY to catch the eof condition: > > signal on notready > > do forever > pull line > say line > end > > notready: > > say done > > Rick > > On Wed, Sep 16, 2009 at 5:07 PM, Ian S. Worthington > <ianworthing...@usa.net> wrote: > > Hi -- > > > > When using > > > > do forever > > pull line > > say line > > end > > > > in the Windows command > > > > dir | rexx prog.rex > > > > prog.rex continues reading/writing blank lines after dir has finished. > > > > Adding while lines() <> 0 instead makes it terminate immediately. > > > > How can I persuade it to wait for some real input? > > > > > > ian > > ... > > > > Ian S. Worthington, MBCS. > > > > me: http://isw.me.uk/ > > photos: http://gallery.isw.me.uk/ > > > > > > Free 2GB online backups: > > https://mozy.com/?code=HJW4C8 (code gets you 256MB extra) > > > > Web hosting and support from $2.99/month: > > www.cirtexhosting.com/affiliates/idevaffiliate.php?id=463 > > > > > > Dulce et decorum est pro patria mori, sed dulcius pro patria vivere, et > > dulcissimus pro patria biber. Ergo, bibiamo pro salute patriae. > > > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9-12, 2009. Register now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Oorexx-users mailing list > > Oorexx-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/oorexx-users > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Oorexx-users mailing list > Oorexx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users