From: "ara.t.howard" Date: 2008-05-11T06:46:51+09:00 Subject: Re: capture output in real time On May 10, 2008, at 1:28 PM, Paul Winward wrote: > I found a perl solution at http://www.perlmonks.org/?node_id=305812 > that > makes use of pseudo tty to get line-buffered output. Unfortunately, I > can find very little documentation on how to use the ruby module PTY, > and it looks like it is no longer supported > (http://www.ruby-forum.com/topic/134771#new). Also, I wonder if a > pseudo tty can capture stderr as well > (http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2003-07/0544.html > ) > > The perl solution is system dependent, but it worked for me on Linux > 2.6.22. I did see a debian package libpty-ruby but I don't see any > documentation and am not sure if this is still supported. > > The notion of a pseudo tty is new to me and I'd appreciate any > help. Is > there a ruby equivalent for the perl solution below? pty is supported and the dist has a bunch of demo code in it (ext/pty/ *) but you cannot capture stderr akaikt. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama