Contained here are example Expect scripts.
-
change_passwd.shtml:
-
This script changes the password of a user without being prompted for
the passord itself. It is used in conjuction with another ksh script
called change_passwd.sh that provides the UNIX box name, the userid, and
the root password. This script sets the user's password to "1234" but
you can change it to anything you like.
change_passwd.exp(non-html version)
change_passwd.sh(non-html version)