PDA

View Full Version : [ubuntu] How to tail log file and printout?



hendraorhnd
September 29th, 2010, 11:42 AM
Hallo,

I need to printout auth.log each line by log event, I think it should be running using the following command:

~# tail -f /var/log/auth.log | lpr

but it's not, why?

the lpr package already is installed in myserver, there is no problem to print directly.

~# cat /var/log/auth.log | lpr

is anyone can help?, thanks.

hendraorhnd
September 29th, 2010, 12:05 PM
sorry my mistake,

~# tail -f /var/log/auth.log > /dev/lp0

and it's ok now.

the_original_billq
September 29th, 2010, 02:30 PM
Or you could just get yourself an ASR33 :-)

http://www.columbia.edu/acis/history/teletype.html