August 1999
Intermediate to advanced
1000 pages
83h 9m
English
trap [argument n [n2...]]
onintr [-| label] * trap [arg sig [sig2...]]
Use the built-in shell trap and onintr commands in shell scripts to specify a sequence of commands to be executed when your shell script receives an interrupt signal.
The trap command argument is read and executed when the shell receives numeric or symbolic signal(s) (n ).
Note
argument is scanned once when the trap is set and once when the trap is taken.
Trap commands are executed in order of signal number or corresponding symbolic names. Any attempt to set a trap on a signal that was ignored on entry to the current shell is ineffective. An attempt ...
Read now
Unlock full access