while (date); do { if (ping -c 1 -q moon > /dev/null); then sleep 60; else echo ^G DONE --- DONE --- DONE ^G ; fi; } done;