On Mon, Dec 17, 2012 at 7:43 AM, Rick McGuire <object.r...@gmail.com> wrote: > > On Mon, Dec 17, 2012 at 10:39 AM, Staffan Tylen <staffan.ty...@gmail.com> > wrote: >> >> I think I need help understanding the use of the Monitor class. Reading >> the documentation it seems like a monitor 'destination' is/should be a >> .Stream object, is this correct? What I'm after is a way to catch the output >> from a shell command into for example an .array or a .queue object where I >> can manipulate it. I don't want it written to a file. Can this be done?
Rick is right about rxqueue. But I wonder what you have against writing to a file? It works extremely well. And, unlike using rxqueue, you can capture the return code from whatever shell command you use. If you write a class to do the work, once you get the class written, it can be very easy to use. I use to think redirecting to a file would be too slow. But, after using that technique in a big application I saw that it wasn't slow at all. As long as you take care to always delete the temporary file you write to, it makes a very clean solution. -- Mark Miesfeld ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users