Post to GNUsocial / Quitter from command line

Let's write a simple one line bash script to post to GNU social // Quitter from terminal


Copy & paste into a terminal, then press enter


cat <<'EOF' >> ~/.bashrc
alias queet='function _queet() { echo -e status="$@" | curl -u user:password --data-binary @- https://quitter.es/api/statuses/update.xml; }; _queet'
EOF

Edit ~/.bashrc with your preferred editor and replace user:password with proper values and quitter.es with the domain name of your GNUsocial instance.

Save it, then logout and login again.

From now, posting to the social network is as simple as


queet Hello all! I'm queeting from cli
Did you enjoy this post and find it valuable?

Tip the author! Don't know what Bitcoin is yet?

1Mojitovwnpokdo8uLXvG93pEhBF6MNFoo

Tagged as: ,