/usr/share/doc/cronutils/examples is in cronutils 1.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
./runalarm -d -t 5 /bin/bash -c 'for i in $(seq 1 7); do echo $i; sleep 1; done; echo "exited"'
./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"'
(./runlock -d -f ../locks/foo bash -c 'for i in $(seq 1 5); do echo $i; sleep 1; done'; echo $?) & sleep 2 ; ./runlock -d -f ../locks/foo bash -c 'for i in $(seq 1 5); do echo $i; sleep 1; done'; echo exited $?
./runlock -d -f ../locks/foo bash -c 'for i in $(seq 1 5); do echo $i; sleep 1; done' & sleep 1; cat ../locks/foo
./runlock -d bash -c 'for i in $(seq 1 5); do echo $i; sleep 1; done'
./runstat -d -f foo bash -c 'for i in $(seq 1 5); do echo $i; done; exit 5'
./runstat -d -f foo ./runalarm -d -t 5 /bin/bash -c 'for i in $(seq 1 7); do echo $i; sleep 1; done; echo exited'; cat foo
./runstat -f foo usleep 4900000; cat foo
|