We can update Twitter from anywhere and use any such tools. For Linux users, probably never imagined that the bash script can be used to make a simple Twitter client. :p Bash is a programming language that works in a terminal/console-based in UNIX, typically used for process management or scheduling process.
This script requires CURL, so make sure that CURL is installed on your Linux.
To try it, do the following steps :
$ nano tweet.sh#! / bin / bash_auth = $ 1: $ 2_update = $ 3_url = "http://twitter.com/statuses/update.json"if [-z $ 1] & [-z $ 2] & [-z $ 3]thenecho "usage: $ 0 user pass message"elseif [-z / usr / bin / curl]thenecho "curl is not installed."else/ usr / bin / curl-u $ _auth-d status = "$ _update" $ _url> / dev / null;echo "success";fifi
Save by pressing Ctrl + X then Y.
Change the file permissions
$ chmod 777 tweet.sh
Try the script
$. / tweet.sh [username] [password] [status-message]
Example
$./ socialblogr tweet.sh **** "Test Bash script to update Twitter"
Code by weldan
Incoming search terms for the article:
bash script twitter (3)twitter bash script (3)facebook bash script (3)bashscript twitter (2)rss bashscript (2)update Facebook bash (2)bash curl script (2)ubuntu twitter curl bash script (2)bash script update twitter (2)post rss feed twitter script (1),Do you like this post? Subscribe to our RSS now!


I am using Ubuntu! Can you tell me how do I download and Install curl?
Hi, to install CURL just type sudo apt-get install curl in your terminal, or you can install it from Synaptic. Search for curl then check it and apply to install. So easy friend..
Yeah..Done! Thanks a lot for immediate reply!
You're welcome..
thanks for this script.