> On 11/09/10 15:48, Aaron Martinez wrote:
>> 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 \
>> [email protected]
>> 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
>> [email protected]
>> 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
>>
>>
>>
>   This might be a silly question but have you installed expect from the
> ports?  Also expect depends on tl and tcl which will be installed which
> are installed along with expect.
>
> regards,
>
> Paul
>
>

Hi Paul,

I do have expect installed but not via ports, I just used the packages.

Thanks.

Aaron

Reply via email to