File: term_trap.sh

package info (click to toggle)
libmojo-ioloop-readwriteprocess-perl 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: perl: 4,655; sh: 101; makefile: 2
file content (11 lines) | stat: -rwxr-xr-x 180 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
trap "echo I ALWAYS WIN" SIGINT SIGTERM
echo "term_trap.sh started"
(sleep 25; echo "Hello World") &
echo "pid is $$"

while :
do
        echo "b"
        sleep 1
done