Jon Aquino's Mental Garden

Engineering beautiful software jon aquino labs | personal blog

Thursday, April 01, 2004

Script for downloading Astronomy Picture Of The Day:
c:\cygwin\bin\bash.exe --login -i "c:\Documents and Settings\jon\My Documents\Programming And Computers\astronomy.sh"
lynx -source http://antwrp.gsfc.nasa.gov/apod/astropix.html | grep 'href="image' | head --lines=1 | sed 's#^.*"\(.*\)".*$#http://antwrp.gsfc.nasa.gov/apod/\1#' | xargs lynx -dump > /cygdrive/c/Documents\ and\ Settings/Jon/My\ Documents/My\ Pictures/Astronomy\ Picture\ Of\ The\ Day.jpg

0 Comments:

Post a Comment

<< Home