![]() |
|
|
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 |
| how to exit a while true loop | Noob e | Shell Programming and Scripting | 5 | 08-26-2007 03:44 PM |
| Method to exit a for loop | Rohini Vijay | Shell Programming and Scripting | 2 | 11-01-2006 05:56 AM |
| Need Clean Exit from KSH Status Loop | ScottKe | Shell Programming and Scripting | 2 | 08-30-2006 05:53 PM |
| csh exit while loop on keystroke | seg | Shell Programming and Scripting | 7 | 12-29-2004 11:45 AM |
| Where can I find a list of exit codes? (Exit code 64) | jkuchar747 | UNIX for Dummies Questions & Answers | 3 | 12-07-2004 06:08 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
while loop exit
i wrote a while script as part of a huge program. this script, once picked, begins to output data to the person using it. pretty easy, as the person doesn't have to keep typing commands to get the output that the while loop automatically throws out.
now, the thing is, while this while-script is outputing data the only way for the client to exit out of the script is to Control-C out of it. and when they do, that Control-C not only kicks em out the while-script, it also kicks em out of the program that the while-script is in there by causing the client to have to restart the program? is there anything i can add to this while-script that will give the user the option to exit out of it without havint to control-c? |
|
||||
|
i tried this but it didn't seem to work. problem is i have more than one while loop in this script. all i'm trying to do is that when a user enters control-c and then hits x, then the user should be directed to the main menu of the program. instead, they get exited out of the script.
i dont know if theres a way for a user to, while the while-script is running, be able to enter any letter and have that letter server as a signal for while to stop looping |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|