Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Expect - Esacpe Characters

Status
Not open for further replies.

swilburn

IS-IT--Management
Feb 18, 2000
1
US
How can I send an escape character using expect. I have read in the man page that this can be done ( but you can't just type ^B ( carat B ) ). Can anyone help here?? Thanks
 
Define a variable; the send it. eg:<br>
<br>
set FILE_RECORD &quot;\033\[17~&quot;<br>
<br>
send $FILE_RECORD<br>
<br>
This real life example from a expect script that controls a Mumps database and is the string for filing a record after creation of modification. The string is an ESCAPE character ( \033 ) in octal; followed by the characters sent by the F6 (?) key on a vt100 keyboard. But it could ( and I have ) be defined as just the ESCAPE character.<br>
<br>
HTH<br>
<br>
Fogged<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top