Use Twitter? Want to post from the command line? You can, and it's really simple!
Process
1. All you have to do is create a file called twitter using your favorite text editor, eg. nano twitter
2. Download the following script to your home directory using wget
wget “http://compsoc.ie/~slibuntu/twitter”
Open the file, nano twitter and replace the USER and PASSWORD with your user name and password.
Save by hitting CTRL + o
3. Now make the file executable using chmod +x twitter
Now to post to twitter, all you need to do is type
./twitter “I'm tweeting from the command line!”
Note that you surround your tweet with quotation marks.
Extra
Another tip is to add an alias to your bashrc file to make this easier,
Open your bashrc file using you favorite text editor eg. nano .bashrc
Now add a line like this to the beginning or the end,
alias twit='./twitter'
Now save and exit, and compile this file,
source .bashrc
From now on, running
twit Posting to twitter!
will post to twitter for you!
Info
The -o curloutput option saves the output to a file, in case something goes wrong.
Hope you like this!
Shane
–Original idea credits - http://binnyva.blogspot.com/2007/03/using-twitter-part-1-command-line.html