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 :
<br />$ nano tweet.sh<br />#! / bin / bash<br />_auth = $ 1: $ 2<br />_update = $ 3<br />_url = "http://twitter.com/statuses/update.json"<br />if [-z $ 1] & [-z $ 2] & [-z $ 3]<br />then<br />echo "usage: $ 0 user pass message"<br />else<br />if [-z / usr / bin / curl]<br />then<br />echo "curl is not installed."<br />else<br />/ usr / bin / curl-u $ _auth-d status = "$ _update" $ _url> / dev / null;<br />echo "success";<br />fi<br />fi<br />
Save by pressing Ctrl + X then Y.
Change the file permissions
<br />$ chmod 777 tweet.sh<br />
Try the script
<br />$. / tweet.sh [username] [password] [status-message]<br />
Example
<br />$./ socialblogr tweet.sh **** "Test Bash script to update Twitter"<br />
Code by weldan

