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

HP-UX Scripting CTRL + ] telnet escape sequence

Status
Not open for further replies.

wcriley

MIS
May 18, 2006
1
US
Hello,

I hope i am in the right place.

I am trying to simulate the process that a user goes through to change telnet to "line mode"
I am connecting to an HP-UX 11.00 server and after logging in via telnet, I can hit the CTRL+] to get a telnet prompt; after which I can type 'mode line" to change to line mode.

I was hoping this is possible through a shell script of some sort, using either csh, sh, or krn shells. I have tried several things but am having the hardest time sending the CTRL + ] through a shell script when connected in a telnet session.

Any help would be appreciated.

Chris


 
If you just need to set line mode, try using a [tt].telnetrc[/tt] file. You can put commands in that file that are executed automatically upon connecting. And they can be different by host. Type "[tt]man -s4 telnetrc[/tt]" for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top