kingkongrevenge has asked for the wisdom of the Perl Monks concerning the following question:
I've tried to read the relevant RFC and the source code to s3270, but I really can't even begin to figure how to code a client.
If I connect to the IBM server with telnet I do get some text. I see the initial login screen, but I can't interact with it. As soon as I hit enter things go all garbled.
So I tried to reverse engineer the protocol by coding a little proxy (no tcpdump or netcat available). I had a script open an IO::Socket::INET to the IBM server and another listen for a local connection. It then IO::Selects between the two and writes back and forth and dumps everything to the screen. When I telnet/tn3270 to the local proxy, there is no output to the screen at all and the client says it's waiting to connect. Nothing fails, both sockets just sit there doing nothing.
Any advice on how to proceed would be much appreciated, because I am stuck. I guess my next step is to study the source of Net::Telnet and try doing some of what that does.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: automate / screenscrape tn3270 session
by pemungkah (Priest) on Sep 14, 2007 at 06:59 UTC | |
|
Re: automate / screenscrape tn3270 session
by roboticus (Chancellor) on Sep 14, 2007 at 14:26 UTC |