Hi ,
I am new to java and i created a program which does an automatic SSH connection from host to a remote machine. I have created a channel from host to remote machine and i am executing certain scripts in the remote machine from the host. This has been done in java. Now the problem is when i run some scripts it prompts for Y/N type of question. I need to answer to that from host machine. Is there anyway to do this.
Eg: In unix script we can use expect function to see what the question is and answer to it. I am looking for a similar function in java.
Thanks ...