Advertisement

06.21.2007 at 11:34AM PDT, ID: 22649457
[x]
Attachment Details

reading ascii characters(catching "Enter key" ) through Perl

Asked by r_jony in Shell Scripting

Tags: ascii, enter, key, character, perl

I want to catch the ASCII character through the shell script. basically I want to catch if user has pressed "enter key" Or "Escape key". based on that I have to do something in shell...I can do that in perl using the function ord(), but how do I do the same in shell script ?

Also how can I call the function ord() from shell. i'e' is it possible to call perl built-in fucntion from shell ?

ThanksStart Free Trial
[+][-]06.21.2007 at 02:49PM PDT, ID: 19337304

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Shell Scripting
Tags: ascii, enter, key, character, perl
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.22.2007 at 09:00AM PDT, ID: 19342491

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.30.2007 at 07:20AM PDT, ID: 20177366

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]11.02.2007 at 02:13PM PDT, ID: 20204567

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.02.2007 at 02:18PM PDT, ID: 20204589

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32