Update Twitter From the Command Line with cURL

terminal-glossy.jpg

Most distribution’s repositories have cURL. So it’s just a matter of using apt-get, yum, or zypper to get it installed. I found this over at Hackzine on how to use curl to update your Twitter from your terminal. If you don’t have cURL in your repo’s you can always build it from source. You can obtain the source for curl here.

With cURL installed, you can post to Twitter from the terminal window by using the following syntax: (Note, this should be all one line)

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.

Related Posts

Comments are closed.