#!/bin/sh
GEOM=1024x768

wget -O /tmp/pageimd http://antwrp.gsfc.nasa.gov/apod/astropix.html
imgd=`grep href /tmp/pageimd | grep image | sed 's/^.*=\"//' | sed 's/\">.*$//'`
rm /tmp/pageimd
wget -O /tmp/iod.jpg http://antwrp.gsfc.nasa.gov/apod/$imgd
xv -root -quit -geometry $GEOM /tmp/iod.jpg
rm /tmp/iod.jpg
