#!/bin/bash while true do clear if [[ -f status.tmp ]] then cat status.tmp else echo "Done!" exit fi sleep 10s done