#! / bin / sh
# Imports $ TPASS, $ TUSER
. ~ / .twit / pass
curl --basic --user $ TUSER: $ TPASS --data status = "$ 1" twitter.com/statuses/update.xml > / dev / null 2> / dev / null
')
if [$? -eq "0"]; then
echo "ok";
else
echo "not ok";
fi
TUSER = YourTwitterUser
TPASS = YourTwitterPassword
$ twit "Trifle, but nice"
Source: https://habr.com/ru/post/27433/
All Articles