About Blog Gallery Twit

All articles, tagged with “twit”

Twitter shell script with curl

I really wanted to create a plugin for Twitter and XChat2, but I decided to get lazy. Only caveat for using this is that you have to escape your own text.

Bash Script, I named it twit, made it executable and placed it in my PATH.

#!/bin/bash
nohup curl -s -u YOURUSER:YOURPASS --data status="`echo $@`" http://twitter.com/statuses/update.xml > /dev/null 2>&1 &

Now this doesn’t return anything to the console, and it nohups it so you don’t have to wait for it to do its stuff.

wstearns@ubuntu:~$ twit Ok, now that I have bash working. I am happy. :-\)

Notice how I had to escape the ). So, all there is to do in XChat is add a Settings->Advanced->User Commands. Now just add a command, I did mine with a name of TWIT and a command of exec twit &2. To try it out now you just do a /twit Hmmm...let me see if my wrapper works in xchat now..

So there we go, I have my cheap interface on my Ubuntu box in both apps that I use the most for the price of one.

On Twitter and otw home

I don’t know why I felt that I must, but I did.
Twitter

Was supposed to be in Wilmington for a week and a half, but had an emergency at home to attend to. So, I’m in Charlotte, NC waiting for my flight back to Tampa. Hopefully the emergency will turn out to be a blip. Kids are fine, but the wife is in the hospital thanks to the OBGYN and his prescription pad. I’m thinking I’ll be calling a lawyer soon.