I'm watching the error logs on my local setup. I'd like to have the errors print out in cowsay, you know, for fun.
tail -f error_log | cowsay doesn't work. Any ideas?
cowsay can print what is presented to it on stdin, but gathers the lines together until stdin is closed (maybe it does so as well when some buffer overflows, but 15Mb of text was not enough to do so).
If you want
cowsay to show every few lines you can pipe the output of the tail command into
xargs and have it invoke cowsay on e.g every 3rd line:
tail -f error_log | xargs -n3 cowsay