[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]
Christopher Fowler cfowler@outpostsentinel.com
Wed, 22 Mar 2006 09:43:48 -0800 (PST)
On Wed, 2006-03-22 at 10:31 -0700, Chris Riddoch wrote: > console can talk to a server just fine. But when I connect with > telnet > or a ruby script I'm writing (based loosely on the Console.pm which > was > posted a while ago) things behave differently. After the > preliminaries > (login, etc) stuff is handled and I see [Attached], from there on out, > any data I send to the server is sent properly, and then sent on to > the > serial port... but nothing is sent to back to my client, even though > it's logged properly. Console.pm is responsible for only making a connection. You'll need to do a select() on STDIN and the socket returned by Console.pm. You'll also need to place your tty in raw mode.