Skip to content

Instantly share code, notes, and snippets.

@cnlpete
Created September 6, 2010 11:03
Show Gist options
  • Save cnlpete/566903 to your computer and use it in GitHub Desktop.
Save cnlpete/566903 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~/.gnome2/
if ping -c2 cnlpete.de > /dev/null 2>&1; then
COUNTER=0
while [ $COUNTER -lt 60 ]; do
wget -O world.jpg "http://xearth.org/xearth?mag=0.75&nostars=1&shift=100,0&nolabel=1&nogrid=1&pos=fixed,55,11&markers=1&proj=orthographic&shade=1&night=7&overlayfile=clouds_2048.jpg,none,none,none,none&mapfile=world.topo.bathy.200407.3x5400x2700.jpg&day=100&size=800,600"
temp=$(stat -c%s world.jpg)
if [[ $temp > 1000 ]]
then mv world.jpg globe.jpg
break
fi
sleep 5
let COUNTER=COUNTER+1
done
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment