- $SIG
- %SIG
- kill
Signals and the kill function
List of signals on Linux: man -S 7 signal
To send a signal use kill SIG, LIST (process IDs)
For example: kill 9, $pid;
examples/signals/signal.pl
use strict; use warnings; my ($sig, @process) = @ARGV; die "Usage: $0 SIGNAL PROCESS-ID\n" if not @process; kill $sig, @process;