LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-19-2008, 02:33 AM   #1
alix123
Member
 
Registered: Nov 2004
Posts: 63

Rep: Reputation: 15
Question Expect script: how do i send function key F12 in an expect script


I'am new to expect how do i send function key F12 in an expect script??

Last edited by alix123; 11-19-2008 at 02:36 AM.
 
Old 11-20-2008, 12:07 PM   #2
teknik
Member
 
Registered: Jun 2006
Location: Winnipeg, Canada
Distribution: Slackware 12.1
Posts: 33

Rep: Reputation: 16
take a look at http://expect.nist.gov/FAQ.html#q54

When I followed the instructions for the "od -c" command, for F12, I got:
Code:
^[[24~
0000000 033   [   2   4   ~  \n
0000006
Therefore, the send command in Expect would be:
Code:
send "\033\[24~"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Expect Script coolest Programming 7 02-16-2009 03:59 PM
Any expect script experts john83reuben Programming 5 07-21-2008 05:21 AM
expect script output saltydog4791 Programming 1 05-27-2008 08:01 AM
Script... variables with expect? Manana Linux - Networking 1 01-19-2007 04:41 AM
CGI script problem: Send/Expect command echo on webpage rajatgarg Programming 2 07-11-2004 04:38 PM


All times are GMT -5. The time now is 04:27 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration