Questions tagged [sigtrap]
3 questions
5
votes
2 answers
dialog, trap and SIGTRAP
I've seen a lot of examples using dialog tools into scripts with lines as follows:
trap "rm $datafile" 0 1 2 5 15
What I don't understand is the meaning of SIGNAL 5, ok I know is SIGTRAP. But shame on me, still I don't understand its real…
sebelk
- 4,209
- 10
- 35
- 54
1
vote
1 answer
Weird aws sync behavior on sigterm
This is baffling behaviour to me. I send a terminate signal to my script while aws s3 sync command is running, and despite me handling the sigterm error, the error trap is also triggered by aws sync command, and I don't understand why. To add to…
alexfvolk
- 163
- 5
1
vote
1 answer
How do I obtain the kill signal / message / reason within a script?
I am using the following trap:
trap OnExit EXIT
And in my OnExit function I would like to capture all the info I can on what happened so I can write it to a log file. Id like to know who, why, how, when etc..
Is any of this possible?
TCZ8
- 1,069
- 4
- 14
- 24