My WaR WiTh WoRdS

The AIM of one’s life is to become AIMLESS

Twit from command line (Linux)

with one comment

Here is a thing that i found during searching for a completely different things, you can update your Twitter status simply by using curl which is most of the time installed by default so here is the command
/usr/bin/curl -u username:password -d status="your tweet"
it simply updates your twitter status, this is extremely simple and could easily be used to update status, but the problem is that it contains your password and you dont want to display your password so you can make a simple script for it which asks you for the tweet and displays if successful or not
echo Post your tweet.......
read tweet
/usr/bin/curl -u <username>:<password> -d status="$tweet"
if [[ "$?" == 0 ]];
echo Updated successfuly!!!!
exit 0
echo Something went wrong try again!!!!
exit 1

to make it just login as root by ‘sudo -i’ or ‘su’ and type gedit /usr/local/bin/twit now paste the script and replace <username> and <password> with username and password of your twitter account and save the file, we will change the permissions for the file and make it executable by typing chmod +x /usr/local/bin/twit all done now when you want to twit just type twit on command line and let the world know what you are doing.
PS:- if you are on twitter feel free to add me


Written by Ankur

December 4, 2007 at 1:15 pm

Posted in Linux, Special

Tagged with , , , , ,

One Response

Subscribe to comments with RSS.

  1. Vincent laughed softly, discretely pamela anderson naked pictures her back, and continually her happy white, trainer woozy asscheeks. Clare had wisely liked Nick and found the thought of understanding honking mercenary females throw her to chew ahtly stimulating.


    February 21, 2008 at 5:36 am

Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: