Archive

Posts Tagged ‘twitter update shell script’

Twitter update via shell Script

February 17th, 2009

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)

Shijil T S general, linux ,