File: dummy.sh

package info (click to toggle)
syncthingtray 1.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,804 kB
  • sloc: cpp: 31,085; xml: 1,694; java: 570; sh: 81; javascript: 53; makefile: 25
file content (15 lines) | stat: -rwxr-xr-x 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

function handle_int {
    echo "Received SIGINT or SIGTERM, keep running for 15 seconds nevertheless"
    sleep 15
    exit -5
}
trap "handle_int" SIGINT SIGTERM

i=0
while [[ true ]]; do
    echo "$i : $RANDOM"
    i=$((i + 1))
    sleep 1
done