From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075322406544.tru64-unix-managers.marc@archive.invalid> From: pulakr () cableol ! net (Pulak Rakshit) Date: Fri, 11 Aug 1995 17:00:37 +0000 To: tru64-unix-managers Subject: Expert to chance POP password X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075322406544 Hi OSF experts; I am using expert in an attempt to change POP password from batch file. I have written the following expert file. then attempt to pass parameter as $1, $2, as follows: #./passwd.exp user pass123 This comes up with several errors, interms of the parameters are not recognised. How should I pass parameters to passwd.exp from a shell script so $1 and $2 are recognised. Thanks in advance Pulak ************************************ File called passwd.exp ************************************ #!/usr/local/bin/expect -f spawn /usr/lib/mh/popwrd $1 expect "*password:" send "$2\r" expect "*password:" send "$2\r" expect eof