Команда trap
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.
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.