tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Expert to chance POP password
@ 1995-08-11 17:00 pulakr
  0 siblings, 0 replies; only message in thread
From: pulakr @ 1995-08-11 17:00 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-08-11 17:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-11 17:00 Expert to chance POP password pulakr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox