From: Phlip Date: 2005-09-12T13:01:33+09:00 Subject: Re: Webrick streaming bodies GOTOU Yuuzou wrote: > res.body can take an IO object. > > def do_GET(req, res) > res["content-type"] = "text/plain" > res.chunked = true if res.keep_alive? > res.body = IO.popen("dmesg") I fear popen. I use Win32. (Not my idea.) It will try to fork, then its object will throw an error because Win32 can't fork. Is there an IOstream object, like the C++ std::stringstream? All I need is to call the application such that each call to .write goes out the TCP/IP port. -- Phlip http://www.greencheese.org/ZeekLand <-- NOT a blog!!!