Trapping Signals and Interrupts
Hi,
I have a script that traps signals (interrupts) while it is executing. But when the Pause / Break keay or Ctrl + z keys combination is pressed then the script gets sent in background. Here is the sample script: Code:
[devarish@m-net ~]$ cat sig.sh Code:
[devarish@m-net ~]$ ./sig.sh I have gone through this document: http://www.tutorialspoint.com/unix/u...nals-traps.htm but could not figure which among the following Signals would be equivalent to Ctrl + Z or ^Z: Code:
[devarish@m-net ~]$ kill -l |
Okay, I have got it. It is the Signal 18:
Code:
[devarish@m-net ~]$ cat sig.sh Code:
[devarish@m-net ~]$ ./sig.sh |
All times are GMT -5. The time now is 08:59 AM. |