Пользователь
#!/bin/bash len=`echo $3 | wc -c` if [ $len -gt 140 ]; then echo "Too much" exit 1 fi curl --basic --user $1:$2 \ --data status=$3 'http://twitter.com/statuses/update.xml' -o /dev/null;
$ tw user pass 'Тест'
#!/bin/bash
len=`echo $3 | wc -c`
if [ $len -gt 140 ]; then
echo "Too much"
exit 1
fi
curl --basic --user $1:$2 \
--data status=$3 'http://twitter.com/statuses/update.xml' -o /dev/null;
Кидаем скрипт куда-нибудь в /usr/local/bin и запускаем вот так:
$ tw user pass 'Тест'