The 03.03.01 at 18:21, John LeMay wrote:
Is there a simple way to automatically print out each entry made to a log file to a simple line printer? Basically something that would work like "tail -f logfile > lpr" (which doesn't work BTW) sans page feeds on the printer.
man 5 syslog.conf [..] Named Pipes This version of syslogd(8) has support for logging output to named pipes (fifos). A fifo or named pipe can be used as a destination for log messages by prepending a pipe symbol (``|'') to the name of the file. This is handy for debugging. Note that the fifo must be created with the mkfifo(1) command before syslogd(8) is started. $ mkfifo /tmp/lpfifo /etc/syslog.conf: [..] *.warn |/tmp/lpfifo #End syslogd.conf # killall -HUP syslogd $ cat /tmp/lpfifo |lpr HTH, Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. SuSE 8.0 x86 Kernel k_Athlon 2.4.19-4GB See headers for PGP/GPG info.