![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem In Shell Script | satyakide | Shell Programming and Scripting | 11 | 09-24-2007 07:00 AM |
| Help! Problem with Shell Script. | pektl | Shell Programming and Scripting | 7 | 05-29-2006 02:08 AM |
| Problem with SU or SSH in shell script | sravanp | UNIX for Dummies Questions & Answers | 2 | 01-24-2006 09:00 AM |
| Shell Script problem | bnohifi | Shell Programming and Scripting | 1 | 07-06-2005 11:02 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
How can I use SIGINT in my shell scripts?
Last edited by zylwyz; 06-29-2005 at 09:38 AM. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
you should use "trap" command.
I am not sure of the syntax. However I have used it as follows in the beginning of the script to capture the Ctrl-C (Interrupt) trap " " 2 When this is used all of the Interrrupt signals to the execution of the shell script are ignored. Jerardfjay |
|
#3
|
||||
|
||||
|
Thanks, jerardfjay!
|
||||
| Google The UNIX and Linux Forums |