Bash/signaux
Un article de Le wiki de 2 noisettes - noisette.ch.
| Cet article est en cours de réalisation. |
#!/bin/sh
function on_hangup() {
echo 'Hangup (SIGHUP) signal received'
}
trap on_hangup SIGHUP
while true ;
do
sleep 1
done
exit 0
kill -SIGHUP ${PID}
Source : http://loligrub.be/contrib/tlepoint/BASE/node237.html
