File: 2.sh

package info (click to toggle)
cronutils 1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 664; sh: 89; makefile: 35
file content (22 lines) | stat: -rwxr-xr-x 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

#2 disabled because of nondeterminism
cat <<EOF
1
2
3
4
5
EOF
exit 0

runalarm -d -t 5 runstat -d -f foo /bin/bash -c 'for i in $(seq 1 7); do echo $i; sleep 1; done; echo "exited"'
r=$?
if [ $r -ne 142 ]; then
	exit 1
fi

# runstat never got chance to write stats
if [ -e foo ]; then
	exit 1
fi