cruel
Programmer
- Aug 6, 2001
- 131
Since I have a long input-soliciting process, I am thinking:
1) define a new trap signal, say, ctrl-s, when intercepted, the script will save all the current inputs to an external file.
2) I have already had a normal trap signal, say when users hit ctrl-c, the script will do some cleaning stuff. So, there will some kind of conditional trap execution.
Thanks for any tips.
1) define a new trap signal, say, ctrl-s, when intercepted, the script will save all the current inputs to an external file.
2) I have already had a normal trap signal, say when users hit ctrl-c, the script will do some cleaning stuff. So, there will some kind of conditional trap execution.
Thanks for any tips.