Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Communications > Chat

    ZenTwitter 1.0

    Download button

    Downloads: 518  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.2/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Klier | More programs
    GPL / FREE
    April 2nd, 2008, 15:06 GMT
    ROOT / Communications / Chat

     Read user reviews (0)  Refer to a friend  Subscribe

    ZenTwitter description

    ZenTwitter is a small script to update your Twitter account without the need of having a browser window open all the time.

    ZenTwitter is a small script to update your Twitter account without the need of having a browser window open all the time. It uses zenity and curl.

    Requirements:

    · zenity
    · curl

    Installation:

    Just dump it into your ~/bin directory, open it in the editor of your choice to change the username/password, make it executable (chmod a+x) and add a launcher icon to the panel/menu/desktop of your preferred window manager.

    Source

    ~/bin/ZenTwitter.sh

    #!/bin/bash
    # @author Michael Klier
    # @www http://www.chimeric.de/pojects/ZenTwitter

    # trivial twitter status update client

    # set username/password
    USER="username"
    PASS="password"

    # main script
    URL="https://twitter.com/statuses/update.xml"
    ZENITY=/usr/bin/zenity
    CURL=/usr/bin/curl

    # check if zenity is installed
    if [[ ! -x $ZENITY ]];
    then
    echo "ERROR: Zenity is missing!"
    exit 1
    fi

    # check if curl is installed
    if [[ ! -x $CURL ]];
    then
    $ZENITY --error --text="ERROR: curl is missing" --title="ZenTwitter"
    exit 1
    fi

    # get tweet
    tweet=$(${ZENITY}|> --entry --text="Gimme your tweet:" --title="ZenTwitter")

    if [[ "$?" == 1 ]];
    then
    exit 0
    fi

    while [[ $(echo "${tweet}" | tr -d ' ') == "" ]];
    do
    tweet=$(${ZENITY}|> --entry --text="D'oh! You entered nothing! Try again or cancel:" --title="ZenTwitter")
    if [[ "$?" == 1 ]];
    then
    exit 0
    fi
    done

    # update status
    $CURL -u ${USER}|>:${PASS}|> -d status="${tweet}" ${URL}|> -k

    if [[ "$?" == 0 ]];
    then
    $ZENITY --info --text="Updated successful!" --title="ZenTwitter"
    exit 0
    else
    $ZENITY --error --text="Something went wrong!nRun ZenTwitter.sh from a commandline for more information!" --title="ZenTwitter"
    exit 1
    fi


    Product's homepage

      


    TAGS:

    Twitter client | micro-blogging service | social networking | Twitter | chat | messenger



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM