* SUMMARY: lpd to epson printer
@ 1999-05-04 3:02 Jason Carter (PE - CSD)
0 siblings, 0 replies; only message in thread
From: Jason Carter (PE - CSD) @ 1999-05-04 3:02 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-05-04 3:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-04 3:02 SUMMARY: lpd to epson printer Jason Carter (PE - CSD)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox