while echo "Ascent restarted `date`" { date ./ascent | tail -n 20 echo } >> ~/crash.log true # This line might, or might not be necessary do date +'%C, Ascent crashed and restarted.' >> ~/server.log done