in

 

AgileJoe

Answering all world issues with, "...it depends..."

May 2008 - Posts

  • Twittering from the command line

    So I was experimenting with Twitter last night and started to use their RESTful services from the command line. 

    Why you may ask? Well sometimes I just want to tweet something quickly and I don't want to bother with opening a client or web page.  So I through together this simple bash script.

    tweet()
      {
        curl -u <username>:<password> -d status="$1" http://twitter.com/statuses/update.xml
      }

    Simply add this to your .bash_profile and you can tweet from the command line all day.

    tweet "Tweeting from the command line is awesome!" 

    I love RESTful services despite popular belief.  :-) 

Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems