Xref: utzoo comp.sys.amiga:33146 comp.sys.amiga.tech:4926 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!agate!eris.berkeley.edu!mwm From: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: ARexx question Message-ID: <23942@agate.BERKELEY.EDU> Date: 2 May 89 23:10:22 GMT References: <9479@watcgl.waterloo.edu> Sender: usenet@agate.BERKELEY.EDU Reply-To: mwm@eris.berkeley.edu (Mike (I'll think of something yet) Meyer) Distribution: na Organization: Missionaria Phonibalonica Lines: 44 In article <9479@watcgl.waterloo.edu> bmacintyre@watcgl.waterloo.edu (Blair MacIntyre) writes: < pipe:date" < call open mydate,"pipe:date",read < datestr = read(mydate) < call close mydate There's a tool that comes with wshell - "execio". Use it, like so: 'date | execio var datestr' done. Furthermore, you can get multiple lines, for instance: 'execio read' file 'stem data.' data.0 will have the number of lines, and data.[1-#] will have the lines. This is about an order of magnitude faster than reading the stuff in yourself. execio also does "grep-like" things for you. For instance, to get the free space on the disk whose name is in volume, I do: 'info | execio locate' volume 'for 1 var infoline' freespace = word(infoline, 4) Of course, "info volume" could also be used and you could drop the "for 1".