From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Thu, 23 Jul 2009 11:16:17 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Does "as little software as possible" include a modern Topicbox-Message-UUID: 2b1d2898-ead5-11e9-9d60-3106f5b1d025 > although it uses http, twitter has got an api that you can use outside > a browser. it's much the same with several others, including aws. > there are reasonably clear descriptions of the messages, and you can construct > and send them however you like, in which ever language you like. The 'stock' command (undocumented?) is a good example of this. (It's a 14-line shell script): term% stock goog "GOOG","Google Inc.",427.69,"7/22/2009",0.00,0 I have a similar little script to do currency conversions: term% currency usd eur 1 US Dollar (USD) = 0.70403 Euro (EUR) term% currency -d 10/30/2000 usd eur 1 US Dollar (USD) = 1.19046 Euro (EUR) which is just a bit of syntactic sugar wrapped around this: hget 'http://www.oanda.com/convert/classic?user=printable&exch='$xout'&expr='$xin'&value=1&date_fmt=us&date='$date | grep '^[ ]*1 '