A POSIX shell script for executing long running tasks with pauses.
Work for 10 seconds, then rest for 10 seconds:
./work-n-rest.sh find ./ -name '*.log'
Work for 20 seconds, then rest for 5 seconds:
WORK=20 REST=5 ./work-n-rest.sh find ./ -name '*.log'