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 we create a simple script with this content:
#!/bin/bash curl --basic --user USERNAME:PASSWORD \ --data status="$*" 'http://twitter.com/statuses/update.xml' -o /dev/null;
Accordingly,
USERNAME and
PASSWORD are changing to our login and password on Twitter.
Now we throw the script somewhere in
/ usr / local / bin , for example, under the name
tw , we set permissions:
$ sudo chmod 551 /usr/local/bin/tw $ sudo chmod +s /usr/local/bin/tw $ sudo chown root /usr/local/bin/tw
(so that everyone could run, and only root can be ruled) - and feel free to use!
$ tw ", ?"
')
Source: https://habr.com/ru/post/50235/All Articles