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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert a keystroke in telnet script

Status
Not open for further replies.

mediation

Technical User
Nov 11, 2006
17
Dear All,

I have a telnet script which connects to a remote machine .. i need to insert (<Ctrl> + L) combination to be typed in the session.
Please be informed that:
1) (<Ctrl> + L) is the escape character on the remote OS.
2) I'm using a KSH script.

Please advise if it is possible to do that .. and thanks in advance for your help.
 
Hi,

If you are using vi editor, you can insert any control character you want :
while in vi do this
type the combination of the two keys CTRL v
( a caret appears in your text )
type in your CTRL L

Code:
insert a ctrl-L in next line
^L
The insertion appears as above


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top