#!/bin/bash
#
# vdr-logviewer (modified console plugin)
#
# Delete old log (watch ... | tee -a ...)
rm /var/log/vdr-logviewer.log

# Terminal width 128 chars on tty8 / Framebuffer (vga=791; /etc/lilo.conf) 
# watch -n2 fold -w 128 /dev/vcs8 | tee /var/log/vdr-logviewer.log

# Terminal width 128 chars on tty8, cut line ends (tnx Markus)
# watch -n2 fold "-w 128 /dev/vcs8 | sed -e 's/ *$//' | tee -a /var/log/vdr-logviewer.log" 

# Standard terminal without framebuffer width 80 chars on tty8
watch -n2 fold -w 80 /dev/vcs8 | tee /var/log/vdr-logviewer.log