From: Eleanor McHugh Date: 2009-07-04T06:31:41+09:00 Subject: Re: $stdout to printer On 3 Jul 2009, at 22:15, Tom Cloyd wrote: > Dimas Cyriaco wrote: >> Still trying to print stuff... >> someone knows how to redirect $stdout to a printer?? >> >> Thanks! >> > Have been researching this, and not coming up with much. However, > I'm getting a strong sense that we need to know your OS. On most platforms the printer will be mapped to a device file by the operating system, and this device file can be opened from Ruby like any other regular file. Of course as to whether or not plain text dumped to this file will result in the expected printed output is open to question: for example a PostScript printer may well expect the content written to the file to be a valid PostScript program. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason