I hope someone out there is knowledgeable in expect scripting.
I'm trying to pass an escape code to the application. When the script gets to a SELECTION option I need it to pass a F2 which is mapped to ESCOQ on my keyboard. I tried just using the following:
expect {
timeout {failed "timeout at SELECTION\n"}
"SELECTION"
}
send -s "\033OQ"
That didn't work. I've been reading in the book about binding but am not sure that will work either or how to get the syntax correct.
Can anyone help with this?
Much Thanks,
Eric
I'm trying to pass an escape code to the application. When the script gets to a SELECTION option I need it to pass a F2 which is mapped to ESCOQ on my keyboard. I tried just using the following:
expect {
timeout {failed "timeout at SELECTION\n"}
"SELECTION"
}
send -s "\033OQ"
That didn't work. I've been reading in the book about binding but am not sure that will work either or how to get the syntax correct.
Can anyone help with this?
Much Thanks,
Eric