Thanks for all your help....
I have a couple of more questions until my expect book gets in...
I am using the same passwd.cgi that comes with expect. I am running on a Solaris 5.7 machine.
I have to change the following line:
spawn /bin/su $var(name) -c "/bin/yppasswd $var(name)"
spawn /bin/su $var(name) -c "/bin/passwd $var(name)"
to get the script to start working.
However, I am getting the following response in my browser.
Passwd Change Acknowledgment
Do you have any ideas...??