Twitter from the terminal
Posted: June 3, 2008 Filed under: Uncategorized | Tags: geek Leave a comment »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