View: Catch SIGINT and SIGTERM in a shell script (CTRL-C)

  1. 2 months ago by spirit
    1. trap "/usr/bin/mycmd; exit 255" SIGINT SIGTERM

0 comment about "Catch SIGINT and SIGTERM in a shell script (CTRL-C)"