Hi Ian,
Thanks for the pointer to JSch. It was quite useful. I downloaded and tried the Exec.java example. In absence of any
doc for JSch api, I am still strugling with 2 questions. Hopefully you or some one on this forum might have an answer.
1. When I execute the Exec.java, at
session.connect(); I am prompted with a warning 'authenticity of host <host name> could not be established. RSA fingerprint .....'. Why is this warning coming? How can this be corrected.
2. Even after the unix command is executed, java program is still running. Could not figure out why this happens.
3. Output of the exec command is printed on standard output at the end. I want to capture this output in a text file or something similar.
Please help me in solving these issues.
Thanks
Ashish