In Java, send commands to another command-line program

后端 未结 4 2020
终归单人心
终归单人心 2020-12-17 22:24

I am using Java on Windows XP and want to be able to send commands to another program such as telnet. I do not want to simply execute another program. I want to execute it,

4条回答
  •  别那么骄傲
    2020-12-17 22:47

    You may take a look at the Telnet Ant task you can call it directly in your code with out having to use a build.xml file.

    You can also take a look at the source code and see how they do it.

提交回复
热议问题