my own built Linux cml. Twitter script
Imports via a dialog, subsequently viewed in a text-based browser.
Change the user name, password and url provided in the script with your own data
Save the below as cmd-twitter.sh, chmot 777 and run!
-----------
#!/bin/bash
#
# CMD-Twitter - ver. 1.0.0
# harm501 - 06-02-2009
#
# user & password :
user=me@me.org
password=hackme
#text-based browser - w3m, lynx, links, Elinks :
browser=w3m
#you twitter url :
url=http://twitter.com/me
clear
dialog --title "Twitter - Inputbox" --backtitle "Linux CMD-Twitter" --inputbox "What are you doing right now ?" 8 60 2>/tmp/input.$$
sel=$?
na=`cat /tmp/input.$$`
case $sel in
0) echo "Sendin to Twitter : $na : press on Enter !!" ;;
1) echo "Cancel is Press" ;;
255) echo "[ESCAPE] key pressed" ;;
esac
rm -f /tmp/input.$$
curl -u $user:$password -d status="$na" http://twitter.com/statuses/update.xml http://twitter.com/account/end_session
clear
$browser $url
zondag 24 mei 2009
Abonneren op:
Reacties posten (Atom)
Geen opmerkingen:
Een reactie posten