[sork] Passwd 3.0b Expect Script Failing Silently

Eric Rostetter eric.rostetter at physics.utexas.edu
Tue Aug 23 19:58:23 PDT 2005


Quoting Shane Liesegang <shane at techie.net>:

> In the log files, I find this:
> expect: spawn id exp13 not open
>     while executing
> "expect -nobrace -re {The authenticity of host.* can't be established.*
> RSA key fingerprint is.*
> Are you sure you want to continue connecting.*} {sleep..."

You are using the ssh connection with expect, but you didn't set it up
properly before hand, so it is failing.  You will need to either log in
as the web server user and establish a proper ssh connection by hand so
you can answer all the prompts, or reduce your ssh client security so it
doesn't prompt you when the key isn't know and so on.  Obviously I'd
recommend the first.

> I'm not terribly familiar with expect, and googling the "spawn id not
> open" message didn't turn up anything helpful to an expect newbie.

It obviously should report an error rather than success.  But the problem
can be fixed by simply doing a manual ssh to setup the proper environment
(or by changing your ssh client setup).
 
It may be possible to add stuff to the expect script to handle these
types of situations, but I'm not sure how well that will work, and 
I don't have time right now, so it would be up to someone else to try
it, at least for now.

> Any advice?
>
> 	- SJML

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin
 
Why get even? Get odd!


More information about the sork mailing list