GnuScreen

27th April 2016 at 5:38pm
TechnicalNotes
export TTY="$(tty)"
if [ "${TTY##*/}" == "tty1" ]; then
  setterm -blank 0 -powersave off -powerdown 0 -store
  exec screen -m -S "${TTY##*/}" -U ssh -l multitail syslog.server.fqdn
fi
ssh -t raspberrypi screen -x
ssh -t raspberrypi screen -S tty1 -p ssh -X stuff O
ssh -t raspberrypi 'screen -S tty1 -p bash -X stuff "toilet -f roman hello^M"'
ssh -t raspberrypi screen -S tty1 -X next