Browse posteets
About
Contact us
Log In
Register
View: Catch SIGINT and SIGTERM in a shell script (CTRL-C)
Catch SIGINT and SIGTERM in a shell script (CTRL-C)
2 months ago
by
spirit
trap
"/usr/bin/mycmd; exit 255"
SIGINT SIGTERM
bash
script
shell
sigint
sigterm
trap
View source
0 comment
about "Catch SIGINT and SIGTERM in a shell script (CTRL-C)"
Tags
bash
script
shell
sigint
sigterm
trap
0 comment about "Catch SIGINT and SIGTERM in a shell script (CTRL-C)"