1
0
zrcadlo https://github.com/peterbourgon/runsvinit.git synchronizováno 2026-03-19 22:27:23 +01:00
Files
runsvinit/foo
Peter Bourgon 4e6968fe8f First draft
2015-09-25 14:37:17 +02:00

18 řádky
147 B
Bash
Spustitelný soubor

#!/bin/sh
handle() {
echo "got signal"
exit
}
trap "handle" SIGINT
for i in `seq 1 5`
do
echo foo: $i
sleep 1
done
echo foo: terminating!