> On 11/9/2010 12:00 PM, Aaron Martinez wrote:
>>> On Tue, Nov 09, 2010 at 09:48:15AM -0600, Aaron Martinez wrote:
>>>> 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
>>>
>>> When invoked like this, the interpreter is sh, not expect.
>>>
>>> --
>>>
>>> Will Maier
>>> http://will.m.aier.us/
>>>
>>>
>>
>>
>> Thanks Will,
>>
>> silly question, how would then I do a good test?
>>
>> Thanks.
>>
>> Aaron
>>
>
> # chmod 0744 227254.test
> # ./227254.test
>

wow, I guess i should have just tried that before asking.  Unfortunately
i'm heading out of town to a funeral won't be able to test it until
tomorrow.

Thanks jim,

Aaron

Reply via email to