I have an application in which i have to connect to unix server from a java program by providing the details ip and ID/password with in the java program(i:e the java program should ask for user id and password again) and the i need to do fallowing activities
1) run a script. 2) move to some other location. 3) removing files......etc
Originally posted by jiju ka: runtime = Runtime.getRuntime() // to get runtime
This would help you run something on the server if your code is running on the server, which I don't think is the case here. The solution about telnet or ssh libraries is more appropriate. Although technically, you could potentially use Runtime.exec() to execute a local ssh process which connects to the remove machine and executes a command. The solution using an ssh library would be far more portable and more efficient.