How to submit values at runtime using JSCH tool after login to unix server

Help
User234
2014-07-24
2014-07-24
  • User234
    User234
    2014-07-24

    Hi,
    I am planning to write a program to reset password of my unix user(as I have many unix servers). Using JSCH tool (using java) I will be able to execute "passwd" command but unix will prompt for Old password, New Password, Confirm password .. so for all this 3 prompts how can give input from Java JSCH tool

    Appreciate your expertise to solve the issue..

    Cheers,
    Rahiman