Command line Twitter

You can easily update your Twitter status from the command line using cURL. The Tech-Recipes blog posted this handy command line hack:

With cURL installed, you can post to Twitter from the terminal window by using the following syntax:


curl -u yourusername:yourpassword -d status="Your Message Here" http://twitter.com/statuses/update.xml

You will receive a response containing the XML coding for your post which acts as a confirmation that your post was submitted.

Consider this: instant messaging is the new talk (phone for my VMS peeps) and Twitter is the new finger. It's nice to see at least one of these handy communication tools make its way back to the command line.

Posting to Twitter from the Terminal Window - Link
cURL downloads - Link

Posted by Jason Striegel | Mar 9, 2008 09:39 PM
Linux, Mac, Ubuntu, Windows | Permalink | Comments (3) Bookmark and Share

Recent Entries

Comments

Newest comments listed first.

Posted by: Jasont on March 9, 2008 at 10:07 PM

wget also works (and may already be installed if curl isn't):

wget -O - --user=YOURUSERNAME --password=YOURPASSWORD --post-data="status=YOUR NEW STATUS HERE" http://twitter.com/statuses/update.xml


Posted by: Michael Klier on March 10, 2008 at 1:56 AM

Nice tip, though I'd use https:// instead of http:// for obvious reasons.


Posted by: Nathan on March 13, 2008 at 10:23 AM

you can also use Net::Perl, I wrote a quick perl script that syncs your .plan file to twitter.
http://char1es.net/2008/03/09/twitter-is-the-new-finger-a-bedtime-story-for-little-hackers/


Leave a comment



Bloggers

Welcome to the Hacks Blog!

Brian Jepson.Brian Jepson


Jason Striegel.Jason Striegel


Philip Torrone.Phillip Torrone



See all of the books in the Hacks Series!
Advertise here.

Recent Posts

www.flickr.com
photos in Hacks More photos in Hacks

Most read entries (last 30 days)