From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079042215451.tru64-unix-managers.marc@archive.invalid> From: "Jason Carter \(PE - CSD\)" Date: Tue, 04 May 1999 03:02:25 +0000 To: tru64-unix-managers Subject: SUMMARY: lpd to epson printer X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079042215451 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