I am trying to write a shell script to reset a user password. It will accept 2 arguments, 1 old password and the new password.
I have used expect and the script works. However, my tech folks do not allow me to install expect in the production servers.
Any suggestions on how to script this?
I tried the methods suggested by this article but it does not work: http://en.kioskea.net/faq/790-changing-password-via-a-script