Quick Solaris expect script to change password

#!/bin/bash
cat dbausers | while read u;do
cat << EOF > /tmp/chpw_${u}.exp
#!/usr/bin/expect -f
set force_conservative 0
if {\$force_conservative} {
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s — $arg
}
}
set timeout -1
spawn passwd $u
match_max 100000
expect -exact “New Password: ”
send — “Sssspwd@1234\r”
expect -exact “\r
Re-enter new Password: ”
send — “Sssspwd@1234\r”
expect eof
EOF
chmod 755 /tmp/chpw_${u}.exp
/tmp/chpw_${u}.exp
done