#!/bin/shThis is a super fancy network monitoring tool. The original version of this was from another friend named Mark (not he of greenbar fame) and it played a submarine style sonar "ping" sound when a ping was successful. When you're waiting for your server to come back up, and you have time for a nap until it does, a tool like this is just what you need.
# usage: sonar <host or ip address>
ping -c 1 $1 && say "PING!"
This version relies on the Mac OS X /usr/bin/say command.
Eat your heart out peep.
EDIT: Yeah, as originally posted the ping command was missing an argument. I blame myself and blogger's difficult to use posting. Thanks, Aaron.