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

VN:F [1.9.6_1107]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.6_1107]
Rating: 0 (from 0 votes)
Twitter update via shell Script, 10.0 out of 10 based on 1 rating
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Twitter
  • Yahoo! Buzz
  • Reddit
  • Technorati