sudo apt-get install curl
nano ~/bin/filename
curl --basic --user "yourusername:yourpasswd" --data-ascii "status=`echo $@|tr ' ' '+'`" "http://twitter.com/statuses/update.json" -o /dev/null
echo Message Sent!
echo Message Sent!
save it with -o
exit with -x
give it execute permission chmod +x ~/bin/filename
use it like so filename "message"
That was easy!
No comments:
Post a Comment