Bash and Twitter
Developing the already mentioned idea of posting on Twitter from Linux Bash: everything is done elementary and simple.
Install curl :
$ sudo apt-get install curl
Now create a simple script with the following content:
#!/bin/bash
curl --basic --user USERNAME:PASSWORD \
--data status="$*" 'http://twitter.com/statuses/update.xml' -o /dev/null;
Accordingly, USERNAME and PASSWORD are changed to our username and password on Twitter.
Now we throw the script somewhere in / usr / local / bin , for example, under the name tw , we set the rights:
$ sudo chmod 551 /usr/local/bin/tw
$ sudo chmod +s /usr/local/bin/tw
$ sudo chown root /usr/local/bin/tw
(in order to run everything, and only root can be edited) - and we boldly use it!
$ tw "Проверка, как слышно?"