Saturday, March 29, 2008

Open Linux Twitter Script


#!/bin/sh
# TinyTwitterScript
#Caveat: Message on command line must be a quoted string.
MINLEN=141
LINE=$1
LEN=${#LINE}
if [ "$LEN" -lt "$MINLEN" ];then
curl -u
username:password -d status="$1" http://twitter.com/statuses/update.xml &> /dev/null
else
echo "Message is too long, sorry."
fi
If you do Linux command line stuff then you know what to do with it.

Thanks to Colin Charles ... On Twitter

No comments:

Post a Comment

. . .