Contained here are example Expect scripts.

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 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) version)