Hi I need execute some comands for configuring a linux remotely and automatic whit some commands. So I looking an API. Some body know hpw working this API?
I have try this...
public static void main(String[] args) {
VTMapper map = new VTMapper();
ATranslator tras = new ATranslator();
AEmulator emu = new AEmulator(map,tras);
Telnet tel = new Telnet(emu);
tel.connect("192.168.1.233", 23);
try {
//I have sended the comand.. for login y password
tel.send("Cisco");
tel.send("Cisco");
//I have tryed make a comand
tel.send("ls");
} catch (IOException ex) {
ex.printStackTrace();
}
//tel.disconnect();
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi I need execute some comands for configuring a linux remotely and automatic whit some commands. So I looking an API. Some body know hpw working this API?
I have try this...
public static void main(String[] args) {
VTMapper map = new VTMapper();
ATranslator tras = new ATranslator();
AEmulator emu = new AEmulator(map,tras);
Telnet tel = new Telnet(emu);
tel.connect("192.168.1.233", 23);
try {
//I have sended the comand.. for login y password
tel.send("Cisco");
tel.send("Cisco");
//I have tryed make a comand
tel.send("ls");
} catch (IOException ex) {
ex.printStackTrace();
}
//tel.disconnect();
}