#!/bin/rc # By tweedy. Version of 12 Jun 2022. # Checks recent com lobby messages without entering. # Shows the 50 last lines by default, or, if passed # a numeric argument, that many last lines instead. commode=/usr/sdf/com/commode switch($1){ case [1-9] [1-9][0-9] [1-9][0-9][0-9] if(test -f $commode/lobby/chatter) tail -n $1 $commode/lobby/chatter if not echo No com history to display. case '' if(test -f $commode/lobby/chatter) tail -n 50 $commode/lobby/chatter if not echo No com history to display. case * echo Checks recent com lobby messages without entering. Shows the 50 last lines by default, or, if passed a numeric argument, that many last lines instead, to a max of 999. }