I want to use a TCP/IP HP-4050TN printer. Access is ok but I have to use a lpf like filter to insert CR/LF as end of line. Classical!
So, I’ve declared the following definition in my printcap file:
lpf file is a classical shell script which you can find in linux’s printers-Howto:
if [ “$1” = -c ]; then
sed -e s/$/^M/
The problem is that I’m almost sure that my filter is not called, because I can put anything in this lpf file, the result is always the same, the printer prints lines with LF only!
I tried with lpr sample.txt, lpr -l sample.txt, nothing changes.
I aslo tried with a perl filter, same.
Is anybody have an idea to test something?