Changing your command terminator |
When a command is sent to the telnet server using either the TelnetSession#send, TelnetSession#sendWait, or TelnetSession#sendNoWait methods it is by default terminated with a line feed \n. Some Telnet servers would prefer that commands be terminated with a carriage return line feed \r\n. To change the command terminator used when sending data invoke the TelnetSession#setCommandTerminator method.
Example
// change command terminator session.setCommandTerminator("\r\n"); |