If you’re like me and Twitter only from a computer, you’re probably annoyed with the slow load time of the Twitter site. Using IM was an option, but as of this writing, the IM system is still down.
If you’re running a Mac or Linux and have curl installed (I believe it’s installed by default on Mac OS X), you can send “tweets” — that’s what they call Twitter messages — using the command line. Open up a terminal application and enter the following, all on the same line, substituting your username, password and message where appropriate:
curl -u your-twitter-username-here:your-twitter-password-here -d status="Your message here" http://twitter.com/statuses/update.xml
4 replies on “Send Twitter Messages from the Command Line (Mac OS and Linux)”
I have to think you use Quicksilver and a Mac. Have you tried the Tweet script for QS?
I re-installed a clean copy of OS X lately and haven’t gotten around to putting Quicksilver back on. It’s just me, the command line and curl. I’ve heard of the QS Tweet script, though.
If you’ve not got curl you can do the same with wget (syntax is a tad uglier):
wget –http-user=your-twitter-username-here –http-passwd=your-twitter-password-here –post-data ‘status=Your message here’ http://twitter.com/statuses/update.xml
This is broken since twitter stopped allowing basic auth.