Share Pictures on GNUsocial from CLI

As some terminal guys requested, there is an easy way to share media content on Quitter from command line! In fact, you can upload any kind of file supported.

This goes into ~/.bashrc
replace user, password and node domain with yours
function quitterimg() { echo 'Message: ' ; read message ; curl -u user:passwd -F "media=@$1" -F "status=$message" --write-out %{http_code} --silent --output /dev/null; }
End of ~/.bashrc edit

quitterimg cutepuppy.jpg
Message: So cute!
If posted, it should return 200 status code

Did you enjoy this post and find it valuable?

📡 Subscribe and sign the 📜 Guestbook!

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


Tagged as: ,