Sonar is a modest perl program that works like a sonar system for computers in the network. It sweeps a hostname or ip and exists when the host goes up (or down since version 0.2).
It's usefull in commands that should wait for a host to go up or down before running.
Example use: sonar.pl -m server && echo "Server online" | mail -s server user