What I want to do is use the samba password tool (smbpasswd) in remote mode (-r) to change user passwords in another domain (mail) from a flat file. It works if I manualy type the user's passwords in on the command line but not if I do it via expect. Either I am using expect wrong or there is something I need to alter to make expect work as it should.