Monthly Archives: August 2009

Quickly check hosts with ping

I needed a script for a quick health check of a bunch of servers. This is how I did it using the ping command: for((i=1;i<42;i++)); do ping -c 1 -W 3 host${i}.domain.com &> /dev/null if [ $? -ne 0 ] ; then echo “host${i} is down” else echo “host${i} is up” fi done You can [...]

Set Terminal tab title in Mac OS X

I wrote previously a how-to to set your iTerm tab title. I finally found a tool to do the same thing with the default Mac OS X Terminal. Check it out here, it works perfectly for me!  link is dead. On my Mac OS X 10.6.6 and bash (3.2.48(1)-release), you can set your tab title [...]