[sork] Re: passwd_expect & ssh & passwd
Eric Rostetter
eric.rostetter at physics.utexas.edu
Tue Mar 4 10:23:37 PST 2003
Quoting Krossi Jani <jkrossi at ratol.fi>:
Added to CVS HEAD code. Will remain there as long as no one else reports
problems with it.
Thanks!
> Problem and solution on our system.
> This is for information so if this useful use, if not don't...
>
> passwd_expect & ssh & passwd left zombie processes to server if password
> change failed (ssh & solaris).
> Our passwd program asks password again and script closes connection -> zombie
> process.
>
> My solution is to send ctrl+c before "exit 1":
> --clip---
> # send new password again
> expect {
> -re $badpassword_string {puts $err "$expect_out(0,string)"
> close $err
> send \003
> sleep .5
> exit 1}
> -re $verify_string {sleep .5
> send $password(new)\r}
> timeout {puts $err "New password ....
> close $err
> send \003
> sleep .5
> exit 1}
> }
> --clip---
>
> Best Regards,
> Jani Krossi
>
> e-mail: jkrossi at ratol.fi
>
--
Eric Rostetter
The Department of Physics
The University of Texas at Austin
Why get even? Get odd!
More information about the sork
mailing list