Can someone give me the code in java (or c++) for executing a command-line program like telnet and then sending arguments to the program like:
>o
>localhost
Printable View
Can someone give me the code in java (or c++) for executing a command-line program like telnet and then sending arguments to the program like:
>o
>localhost
Change the "writing" in the title to "sending".
Something like this?
In Java: Runtime.getRuntime().exec("telnet ahost 25");
I think in c++ it's: System("telnet ahost 25");
Cheers