SHARE
TWEET

Shell script to download STIX font zip file

a guest May 30th, 2010 150 Never
  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"
RAW Paste Data
Top