Engadget for the iPhone: download the app now
AOL Tech

Alex Gretlein

Member since: Mar 9th, 2008

Alex Gretlein's Latest Comments

Blog Activity
Blog# of Comments
Engadget1 Comment
Download Squad2 Comments

Recent Comments:

ASUS' Eee PC 1000H goes on sale in Taiwan (Engadget)

Jun 11th 2008 1:39PM Champing and chomping mean the same thing; both versions are acceptable. Pedantry is irritating. Misplaced pedantry, unbearable.

CSS exploit allows detection of social site use (Download Squad)

May 29th 2008 3:23PM In this case NoScript keeps you safe. Even for a non-JavaScript solution, the SafeHistory Firefox add on was designed to prevent just this.

Post to Twitter using the command line (Download Squad)

Mar 9th 2008 12:58AM Of course you would want to alias this with something like:
alias twit='curl -u yourusername:yourpassword -d status="$1" http://twitter.com/statuses/update.xml'
(preferably in your .bashrc or the like) and then you could just do "twit Message".
I'm not sure if KDE's Katapult or GNOME's Deskbar Applet recognize your Bash aliases. If they do, then you could use this to twit from either. (In Katapult type "exec" first.) If they don't, then just use Saul's tip and save it as a script in your path, and you'll be good to go in either. (There are also several Twitter plugins for Deskbar. I'm not sure if they do anything more than send messages, for which it seems curl is perfect.)
Lastly, you don't need to download curl, wget (installed by default on many *nix systems) should be fine:
wget -O - --user=USER --password=PASSWORD --post-data='status="MESSAGE"' http://twitter.com/statuses/update.xml