Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Shell script to download STIX font zip file

By: a guest on May 30th, 2010  |  syntax: Bash  |  size: 0.48 KB  |  views: 147  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. referer="http://www.aip.org/stixfonts/font_download.jsp"
  2. timestamp=$( wget --keep-session-cookies --save-cookies download.cookies -O - "http://www.aip.org/stixfonts/font_download_parse.jsp" 2> /dev/null | grep timestamp | grep -o '[0-9]\{13\}' )
  3. postdata="timestamp=$timestamp&agree=on&submit1=++++++I+agree++++++"
  4. filename="STIXv1.0.0.zip"
  5. wget --load-cookies download.cookies --referer="$referer" --post-data="$postdata" -O "$filename" "http://www.aip.org/stixfonts/font_download_parse.jsp"