7 Jul 2009

Quicktweet, for tweeting really fast

I made a little script for just blasting out a fast tweet without having to start up an application, or log into the website. All it requires is sh and curl. Will work on any platform that has the requirements (Mac, Linux, Solaris, *BSD,etc).
#!/bin/sh
echo -n "Username: "
read USER
echo -n "Status "
read STATUS
if [ "x${STATUS}" != "x" ]; then
  curl -u ${USER} -d "status=${STATUS}" http://twitter.com/statuses/update.json
fi
The json output at the end means it worked.