240302-local

on a shared computer that we all log into at once, maybe we don't need complex chat applications. how about two one-liners?

tehn@kaatsk:~$ cat /usr/local/bin/say
echo -e $(date +'%m/%d %H:%M') - $(whoami) - $@ >> /home/kaatsk/said
tehn@kaatsk:~$ cat /usr/local/bin/what
tail -n 10 /home/kaatsk/said

say adds a line. what shows the last ten entries.

since kaatsk is our shared folder (where we all can also edit the website) the said file is just a log of our chatter. when logging into the system we are shown recent messages.

it ends up looking something like:

02/29/2024 19:35 - tehn - new things
02/29/2024 19:35 - gavin - toosick
02/29/2024 19:35 - palomakop - hi this is a test
02/29/2024 19:36 - davek - yowhat
02/29/2024 19:37 - graham - i have not read the book
02/29/2024 20:05:14 - burnheart - last
03/01/2024 10:05:02 - darwin - it was a really fun meeting last night!
03/02 19:50 - tehn - i removed the second, and the year. we are losing control.

tehn@nnnnnnnn.co