#!/bin/sh # # Based on code from # http://binnyva.blogspot.com/2007/03/using-twitter-part-1-command-line.html # username= password='your password here' echo -n "twit: " read text ctext=`echo $text | tr ' ' '+' | sed -e's/"/\\"/g' | sed -e"s/'/\\'/g"` echo "DEBUG: sending $ctext" wget --http-user="$username" \ --http-passwd="$password" \ --post-data="status=$ctext" \ --output-document=/dev/null \ --user-agent="CLITwit" \ http://twitter.com/statuses/update.json \ > /dev/null #END#