Another Script

·

I was spending my time watching pr0n, so in order to "twitear" from gnome desktop i started this script based on this example

As root make this

   # chmod +x twittertool
   # ln -s twittertool /usr/bin/ 

#!/bin/bash 

USERNAME="Your username" 
PASSWORD="your passwd" 

MESSAGE=$(zenity --entry \
 --window-icon=/usr/share/pixmaps/twittericon.ico\ 
 --title="Another TwitterTool"\ 
 --text="What are you doing?"\ 
 --entry-text='') 
 
TWITTER_TARGET="http://twitter.com/statuses/update.xml" 
 
if `/usr/bin/curl -u $USERNAME:$PASSWORD -d status="$MESSAGE"\ 
     $TWITTER_TARGET 1>/dev/null 2>&1` 
then 
        zenity --window-icon=/usr/share/pixmaps/twittericon.ico\ 
         --info --text="TWEET OK"  
else 
        zenity --window-icon=/usr/share/pixmaps/twittericon.ico\ 
        --error --text "TWEET FAILED!" 
fi 


0 Comentarios:

About Me

Mi foto
Soy Un Wey Aliviniado, prefiero tener cuates que amigos OGT con los OGT's

Labels