Linux and Unix trap and onitr command
Quick links
About trap, onintr
Syntax
Examples
Related commands
Linux and Unix main page
Shell built-in functions to respond to (hardware) signals.
trap [ argument n [ n2] ]
onintr [ -| label ]
trap 'rm -f /tmp/xyz$$; exit' ERR EXIT
On error or exit delete a temporary file created during command execution.
