#! /bin/sh t=${1:?} c=${2:?} if test -n "$3"; then echo $$ > $3 fi sleep $t exit $c