Open Linux Twitter Script
If you do Linux command line stuff then you know what to do with it.
#!/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
Thanks to Colin Charles ... On Twitter
No comments:
Post a Comment