Hi all,
I want to print to a printer connected to the serial port. So this is how I set up the /etc/printcap file:
imp1:
:lp=/dev/ser1:sd=/usr/spool/output/imp1:
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:
imp1:
:lp=/dev/ser1:br#9600:sd=/usr/spool/output/imp1:
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?
Thank you!
Jose