Handling Signals in bash: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * http://www.linuxjournal.com/article/10815 =Internal= * bash =Overview=")
 
Line 8: Line 8:


=Overview=
=Overview=
The signals are caught with the <tt>trap</tt> built-in.
trap '<''executable code or function name''>' <''signal''>

Revision as of 19:42, 29 January 2018

External

Internal

Overview

The signals are caught with the trap built-in.

trap '<executable code or function name>' <signal>