From: Mark Hubbart Date: 2004-05-08T06:24:13+09:00 Subject: Re: Encoding with TCPSocket On May 7, 2004, at 3:43 AM, Michael Mueller wrote: > My ruby-Snippet looks like this: > .... > socket = TCPSocket::new(server,port) > socker.print(" List\n") > .... > socket.flush > respone=socket.gets Does it look *exactly* like this? There is a typo in line two, you spelled socket wrong. Otherwise, have you tried manually telnetting to that host:port? Type in "List", hit return, and see what happens. (I think any OS nowadays comes with a telnet app, right?) If I had an lpr server, I'd check it, but I don't. :) HTH, --Mark