you will get good results using expect scripting instead of ksh. i am sure that you can do it via ksh somehow but it probably requires a lot of character-piping, if it even works at all.
I would recommend that you use expect as well. If for some reason that is not possible, you could use sed/awk to replace the encripted password in /etc/security/passwd
To do this in ksh you will also need a C compiler or perl to do some of the stuff that ksh can't do. I posted a solution for this using ksh & C a few years ago.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.