Java, Telnet and AIX
I've decided to use the UnixLoginHanlder class. Here's my sample code s, and below is the history of my struggles. Socket s = new Socket(host, port); UnixLoginHandler handler = new UnixLoginHandler(s); TelnetInputStreamConsumer is = handler.doLogin(user, pass); String command="echo hello > deleteme.tres\r\n"; pw = new PrintWriter(new OutputStreamWriter(s.getOutputStream()), true); pw.print(command); // Don't forget to flush pw.flush(); // Executing these immediately may precede the commands. // Do logout/disconnects on a seperate event //handler.doLogout(); //handler.disconnect(); Good luck! ____________________________________________________________ ____________________________________________________________ This article will illustrate my struggles with automating some Telnet functions through Java. The application that's being designed could provide as an interface or relay server, and is intended eventually to get some information out of some flat ...