Bash signal catching
I was wondering if it is possible to catch signals, especially SIGTERM, in a bash script. I have a script where I would like to do some clean up before exiting if the user presses ctrl-c.
Last edited by meblost; 11-22-2004 at 11:22 AM.
|