while [ 1 ]
do
sleep 1
echo hello
donewhile true; do sh sleep.sh; echo 'sleep.sh has crashed, restarting'; sleep 1; donerun the invocation
ps | grep sleep.sh, find the pid of the runningsh sleep.shkill 123- observe the "monitor" announce the restart and the series of "hello" start up again