![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to catch PL/SQL return values | Veera_Raghav | Shell Programming and Scripting | 1 | 12-19-2008 05:47 PM |
| Enter Crtl+U character in shell script | ashish_uiit | Shell Programming and Scripting | 3 | 06-30-2008 04:01 AM |
| writing Enter key inside in shell script | bishweshwar | Shell Programming and Scripting | 3 | 01-04-2008 12:45 PM |
| using enter key in shell script | bishweshwar | UNIX for Advanced & Expert Users | 1 | 06-06-2007 10:24 PM |
| How to run unix commands in a new shell inside a shell script? | hkapil | Shell Programming and Scripting | 2 | 01-04-2006 06:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have a script in which i have to ask user to press the ENTER key to proceed further. can you please help me how can i achive this in my scripting? echo "All the executables builded Successfully " echo " Press Enter to Go Back to the Main Menu" read key if [ $key == 13 ] then main_menu_selector fi Thanks in Advance..... Plaban |
|
||||
|
You don't need to test at all. Anything ending in an enter will satisfy the "read". Just in case "key" is used in "main_menu_selector" you may wish to use a different name for the variable.
echo "All the executables builded Successfully " echo " Press Enter to Go Back to the Main Menu" read junk main_menu_selector Last edited by methyl; 01-05-2009 at 09:45 AM.. Reason: typo |
|
||||
|
Thanks a lot for ur useful reply.......
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|