File: sleeper.bash

package info (click to toggle)
python-pyflow 1.1.20-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 996 kB
  • sloc: python: 4,154; sh: 219; ansic: 15; makefile: 5
file content (13 lines) | stat: -rwxr-xr-x 185 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash

if [ $# != 1 ]; then
    echo "usage $0 arg"
    exit 1
fi
arg=$1

pid=$$
echo pid: $pid arg: $arg starting sleep
sleep $arg
echo pid: $pid arg: $arg ending sleep