【在 k******r 的大作中提到】 : Could anyone explain to me why and how we use "trap"? I would appreciate if : you could explain it with a simple example. Thanks a lot.
k*r
3 楼
Thanks for your reply. Here is an example from the tutorial referenced by you. trap 'rm -f $TMPFILE; exit 0' 1 2 15 My question is that are signals system defined? How'd I know their meanings? Guess I should get a good Unix book. Any recommendation?
【在 k******r 的大作中提到】 : Thanks for your reply. : Here is an example from the tutorial referenced by you. : trap 'rm -f $TMPFILE; exit 0' 1 2 15 : My question is that are signals system defined? How'd I know their meanings? : Guess I should get a good Unix book. Any recommendation? : : if