Auto exit Telnet command back to prompt without human intervention ^] quit close exit code 1
- 阅读更多 关于 Auto exit Telnet command back to prompt without human intervention ^] quit close exit code 1
问题 I'm running telnet command on a host for a given port (which is open), it returns 0 (success). For trying telnet manually, I type the following command, then I press control+bracket i.e. ^] , then press Enter key, then I get to telnet> prompt, where if I type close or quit , it comes back to the $ prompt and seeing exit status of last command shows 0 for (success) as port 2878 is open (as per the telnet command's output). [vagrant@myvagrant /tmp] $ telnet `hostname` 2878 Trying 127.0.0.1...