I want to print to a printer connected to the serial port. So this is how I set up the /etc/printcap file:
But when I print with:
lpr -Pimp1 filetoprint
File gets spooled, but the settings of the serial port change! -Like parity checking gets set to “odd”, and baud rate to “13” (!). Even if I change the printcap file to look like this:
Lpd keeps leaving /dev/ser1 in bad state. The spooled fiel print when I change the settings of the serial port correctly with:
stty baud=9600 par=none < /dev/ser1
Any clues on why is this happening? How to fix it?