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

3 Responses to Command line Twitter

  1. Jasont on said:

    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

  2. Michael Klier on said:

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

  3. 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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s