Paul Sutton

Toot

Toot mastodon client

Donate using Liberapay

I have been experimenting with the toot mastodon client. This does have a curses interface.

toot curses. (q to quit)

However experimenting with this and bash scripting

So to begin with you will probably need to login

toot login_cli

toot post text here

will send that text to Mastodon (toy

fortune > fortuneout
#
# echo to screen
cat fortuneout
# post content of fortuneout to console
toot post < fortuneout
#
echo "done"

This will run the fortune program, send output to a file then send the output in to toot post.

The next example the script asks for some user input and then sends it to toot post

echo "Please Enter some Text"
read usertext
#
#
# post user input to mastodon
echo $usertext
toot post '$usertext'
#
echo "done"

The potential of the above could allow real time data to be posted to Mastodon for example.

The above scripts are released under GPLv3.

REFERENCES

TAGS

#YearOfTheFediverse,#toot,#mastodon,#client

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Site Index

Donate using Liberapay

  1. Click on a link.
  2. Scroll to bottom of page.
    • Any posts / pages within this blog will be displayed.

A

#Astronify #Adenine #AminoAcid #Astronomy #AralBalkan #AstroBiology #AstroChemistry #apg #Apt #Aptitude #Africa #Activism #Analytics #Api #Arduino #AMES #arXiv #Academy #Abuse #Afghanistan

B

#Blog #BioChemistry #Biology #bash #better #BigBluButton #BibTeX #Browser #Beamer #Bullseye #Buster #Bookworm

C

#Cytosine #Conditions #Cryptpad #Cosmology #Chemistry #Console #Chat #Conference #Code #Coding #CodeClub #Cornwall #Covid19 #Corona #CoronaVirus #CreativeCommons #Commons #Chrome #Chromium #Charity #Creative #Education #CPD #cpd #CreativeEducation #CTAN

D

#dna #DNA #Disroot #disroot #Decentralised #Decentralized #dcglug #dclug #Debian #Donate #Donation #Debconf #BASH #Devon #Digital #DRM #Diaspora #DiodeZone #Development #Data #Detox #Docker #DeepLearning #Documentation

E

#emacs #Editing #Events #EventManagement #Employment #Email #Education #Exploration, #Ethics #Elements #Exploration #EveryonesInvited

F

#Flockingbird #Framablog #FramaBlog #Fediverse #Federated #Firefox #Fosdem #Freedom #FreeSoftware #Foundation #FSF #FSFE #Friendica #Framework #FreeBSD #FalconsEye #FOSSandCrafts #FutureLearn

G

#GoatCounter #Guanine #Greek #Gimp #Galaxy #GoDot #GNU #GNOME #GUI #Gamma #Ghostreply #GPL #GraphicsMagick #gm #GoAccess #gold #GettingStarted #Git #GitLab #Gitlab #GDPR #Galculator #Games #Engine

H

#Hubble #Hexchat #Hack #Hacking #Hardware #Hosting #htop

I

#information #Inkscape #Image #ImageManipulation #IRC #Index #Invidious

J

#JamesWebb #JoeEditor #Jitsi #Jit.si

K

#kstars #Kanban #Kenya #KDE #KeepingChildrenSafeinEducation, #KCSIE

L

#Linux #LinuxMint #LibreOffice #LiberaPay #LibrePlanet #Lecture #Learning #LibreOfficeWriter #LibreOfficeCalc #LibreOfficeImpres #LibreOfficeDraw #LibreOfficeGettingStarted #LaTeX #LXDE #LGPL #Lynx #Librem #Libre #LibreLounge

M

#Mastodon #Meetings #Management #Mobilizon #Meeting #Matomo #Map #Mapscii #Mercury #mercury #mining #Matrix #Moon #Mars #Manganese #Materials

N

#Nextcloud #Nebula #NetHack #Nano #Nucleobases #network #NGINX #NaCl

O

#OpenUniversity #OpenLearn #OU #Online #Overleaf #OwnCloud #OpenStreetMap #OpenData #Open #Overleaf

P

#Physics #Podcast #Payment #Password #Public #Paypal #Photo #Photograph #Photos #Photographs #Python #Python3 #Programming #PixelFed #PeerTube #PowderToy #Pleroma #Planet #PDF #Package #pinebook #pinephone #Purism #Plausible #ProtoSchool #PeriodicTable #Paper #Privacy

Q

R

#rna #RNA #Rights #RocksAndDiamonds #Recovery #RadioAstronomy #Research #RedBubble

S

#Science #Scratch #Scratch2 #Scratch3 #smallweb #Sitejs #Space #Stars #Stellarium #Stripe #Security #stsci #Seagl #Social #SocialHub #SDTJ #SouthDevonTechJam #Solarus #Synaptic #Schools #Solid #Shynet #Scismic #ScienceDaily #Stickers #Symmetry #Salt #SodiumChloride

T

#terms #Telescope #TheOpenUniversity #Terminal #Talk #Thunderbird #Torbay #TeX #Topic #Thunar #Thymine #tailings #Top #Tilde #TextEditor #Toot #Translation #Trojans #TorbayTrojans

U

#Uracil #Umami #UniverseOfLearning

V

#Vaccine #VokoScreen #VLC #Volunteering #Volunteer #VultureNethack #vultureseye #Virgo

W

#Website #Work #wireless #wicd #wayland #weatherinfo #Wormhole

X

#Xournal #Xchat #XFCE #XFCE4 #xray #XMPP #xorg

Y

#YearOfTheFediverse

Z

#Zoo

Mastodon toot client

Tip of the day

if using the toot command line client, you can toot the contents of a file.

Lets say 'text.txt' contains the following

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam

If you login to toot, then type

toot post < text.txt then the contents of that file will be posted to Mastodon.

Please feel free to follow me on Mastodon here

#mastodon,#toot,#tips,#hints,#commandline,#cli,#client, #text,

Toot is a Linux command line interface for the Mastodon social media network.

This can be installed at the command line with

apt install toot

Once installed you can run with toot

Running this without any command line arguments gives a long list of options.

You will firstly need to login, either with the browser option toot login or with the command line toot login_cli

In order to make a post type:-

toot post

  • Type your message.
  • Press enter then
  • On the new line press ctrl-d to post the message.

There is also documentation via the man page.

man toot

A useful tool, especially if you don't have access to graphical web browser.

Resources

#mastodon, #toot, #commandline, #interface, #linux

cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)