import de.mud.telnet.*;
public class JtaTest {
   public static void main(String args[]) {
     TelnetWrapper telnet = new TelnetWrapper();
     try {
       telnet.connect(args[0], 23);
       telnet.login("alw", "xxx");
       telnet.setPrompt("/users/alw -->");
       telnet.waitfor("TERM =");
       telnet.send("dumb");
       System.out.println(telnet.send("ls -l"));
       } catch(java.io.IOException e) {
         e.printStackTrace();
       }
    }
  }
