Hi All,

I am trying to use openbsd as my workstation here at work but one of the
tools we use, creates an expect script and it's not working at all.  The
developer of the tool uses linux primarily so he's not sure except to
tell me that the expect in openbsd doesn't know spawn which I looked and
the expect man page is loaded with stuff about spawn.

The script I try to run is this:
# cat 227254.test           
                                                             
#!/usr/local/bin/expect -f
set timeout -1
spawn -noecho ssh -X -vvv -p 22 -o StrictHostKeyChecking=no -o \
UserKnownHostsFile=/dev/null -o GSSAPIAuthentication=no \
r...@192.168.0.10
interact {
\034 exit
}


Executing this from the command line returns the following:

# sh -x 227254.test

+ set timeout -1
+ spawn -noecho ssh -X -vvv -p 22 -o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null -o GSSAPIAuthentication=no
r...@192.168.0.10
227254.test[3]: spawn: not found
+ interact {
227254.test[4]: interact: not found
+ 034 exit
227254.test[5]: 034: not found
227254.test[6]: syntax error: `}' unexpected


Is the format of his expect script all wrong or?? 

Thanks,

Aaron Martinez

Reply via email to