Twitter update via shell Script
Hope everyone is familiar with twitter if you still don’t check twitter.com
Twitter can be used to check updates online and its a great people to get updates online.
Save the code in twitter.sh
#!/bin/bash
read -p "Give your input : " -e input
curl –-basic –-user username:password –-data status="$input"
http://twitter.com/statuses/update.xml > /dev/null
echo “OK”
username and password should be edited to that of your twitter account.
Make sure you have curl installed in the server.
yum -y install curl
Now execute the script
sh twitter.sh
It will ask “Give your input :”
Enter your update it should be less than 140 characthers.
Enjoy twittering
Jim
SparkSupport

