From: pulakr () cableol ! net (Pulak Rakshit)
To: tru64-unix-managers
Subject: Expert to chance POP password
Date: Fri, 11 Aug 1995 17:00:37 +0000 [thread overview]
Message-ID: <96075322406544.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1995-08-11 17:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox