I never actually posted a question to the group but thought this info may be
handy to someone out there. I was trying to print to an epson LQ2070
connected to the network with an Axis printer server using LPD. It was not
paging correctly (we use preprinted forms) and the escape code the printer
manual specified didn't (ESC C n <--- where n is the page length in lines eg
vi would display ^[C51 ). All the other escape sequences worked fine.
To get the page length setting to work correctly, I had to send the escape
sequence in octal:
eg. /usr/bin/echo -n "\033C\063" >> "$PRINTFILE"
This equates to: \033 Escape code
C Epson page length code
\063 51 in octal (page length I required).
Hopefully you won't spend the hours I did trying to work out why it wasn't
working.
Jason Carter
Network Year 2000
Project Coordinator
Newcrest Mining Ltd
Ph: +61 8 9270 7009
Mb: 041 993 8578
Received on Tue May 04 1999 - 03:01:50 NZST