Twitter from the terminal

This is huge. Send Twitter text from your burning terminal. For doing this, use curl:


#!/bin/bash
if [ "$1" == "" ]; then
echo " twitter message missing!"
exit
fi
USER=XXX
PASSWD=YYY
message=$*
curl -u $USER:$PASSWD -d status="$message" http://twitter.com/statuses/update.xml > /dev/null

If you don’t have curl just type in ubuntu:


sudo aptitude install curl

and you are there.
Also heard that you can do the same stuff using wget.

Advertisement


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.