Monday, August 24, 2009

Twittering the command line way

As you might have noticed my previous post was browsing the command line. Now lets see how to twitter the command line way:-);-)
At first you need to install cURL.(a client for getting files from servers) to post to Twitter through the Terminal which can be installed using the following command:

pradeep@pradeep-laptop:sudo apt-get install curl

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


pradeep@pradeep-laptop: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.

So have fun twittering the command line way:-)

Post in your reviews:-)

0 comments: