Chenen Liang
Posts: 8
Nickname: chenen
Registered: Jun, 2007
|
|
Re: Runtime.getRuntime().exec(cmd) issues
|
Posted: Jun 27, 2007 8:42 AM
|
|
If I use writer.write("pwd\n"); it works, I can see the directory I am and stuff. However if I use writer.write("telnet server\n"); Nothing happens, writer.write("telnet server \t"); doesn't do anything either. So, it doesn't do anything, I get no output and I am still in the same directory.
What I am trying to do is. Make a java program that runs in windows.
I am trying to run commands on this unix machine. So, I have to telnet into it first.
Thanks for the help guys.
|
|