UPS changed their tracking site again; updated /rc/bin/ups to match. It now prints the attribution, the "on time message", the tracking number (as UPS likes it), Type, Status, "Shipped To" (which seems to be the city), Shipped/billed date, which service was used, and the weight of the package. Or at least that's what i get on the two tracking numbers i have to test. There was also a comment about defeating caching proxies that didn't seem to have an implementation, and a split of rfork's e and n; i removed those. Reference: /n/sources/patch/applied/ups-update Date: Mon Jun 29 17:07:34 CES 2009 Signed-off-by: a@9srv.net --- /rc/bin/ups Mon Jun 29 17:00:56 2009 +++ /rc/bin/ups Mon Jun 29 17:00:55 2009 @@ -1,33 +1,25 @@ #!/bin/rc -# lucent web proxy caches the page; defeat it -rfork n +rfork en if(! ~ $#* 1) { echo usage: ups 1ZA41W190338680961 >[1=2] exit usage } -rfork e -hget 'http://wwwapps.ups.com/etracking/tracking.cgi?track=Track&InquiryNumber1='^$1^ \ +hget 'http://wwwapps.ups.com/WebTracking/processInputRequest?tracknum='^$1^ \ '&TypeOfInquiryNumber=T' >/tmp/ups.1 -cat /tmp/ups.1 | -x=`{sed -n 's/^.*/\1=\2/p' | -tr ' ' ++} -x=$"x -x=`{echo $x | sed 's/ /\&/g'} -x=$"x -x=$x^'&tdts1.x=19&tdts1.y=7' -hget -p $x http://wwwapps.ups.com/etracking/tracking.cgi >/tmp/ups.2 - -sed 's/<[Tt][Dd]>/& «TD»/g; s/<[Tt][Rr]>/&