Created
June 25, 2009 14:44
-
-
Save mattn/135903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
AUTH=`echo \`ppit get wassr.jp\` | sed -n "s/^--- \"password\": '\\([^\"]\\+\\)' \"username\": '\\([^\"]\\+\\)'$/\2:\1/p"` | |
case $1 in | |
show) | |
w3m http://wassr.jp/user/$2 | |
;; | |
post) | |
curl -u $AUTH -d status="$2" http://api.wassr.jp/statuses/update.json | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment