File: 3.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 (12 lines) | stat: -rwxr-xr-x 238 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

(
	runlock -d -f lock bash -c 'for i in $(seq 1 5); do echo $i; sleep 1; done'
	r=$?
	echo $r
	if [ $r -ne 0 ]; then
	   exit 1
        fi
) &
sleep 2
runlock -d -f lock bash -c 'for i in $(seq 1 5); do echo $i; sleep 1; done'