Geek out your twitter!
Posted: June 2nd, 2010 | Author: A.J. | Filed under: nerd, silliness |I interrupt your regularly schedule style blog… for a really important tidbit of information…
How to post to Twitter using commandline!
1. Create the Script.
Fire up your terminal and create a script with the following contents:
curl --basic --user "<User>:<Password>" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json"
Substituting <User> for your username and <Password> for your password, of course. The status= accepts your twitter status.
2. Save your script.
mv it to /usr/local/bin or and chmod u+x it.
3. Run it!
Run it like you run tings!
twitter "This is my status update!"
Success! I’m such a nerd that this makes me happy… now I can run terminal (I use it daily anyways) to update my twitter… with useless crap. Incredibly useless crap.
And… I’m done.

Leave a Reply