how to send printer esape codes ..?

From: selcuk karaca <selcuk.karaca_at_aski.gov.tr>
Date: Mon, 12 May 2003 13:10:29 +0300

Hello all..
Tru64Unix V5.1

I am in trouble...Your helps strongly requested..
We have an epson DFX5000+ printer. It is connectd to a DEC700 terminal
server (LAT protocol based...)
Normally it has 4 page length properties which can be set with dip
switches.. none of them satisfies us.. I have learned from manual that, I
can send an escape code to reset page length in lines freely..

According to manual;

ESC C n (n=page length in lines) will do the job..

I have prepared a file to set the page length to 33 (41 octal) lines

echo "\033\C\041" > SetPage33

But When I send the file.. It just prints C! and does nothing about page
length..
printer def file is this (in /etc/printcap);

konsol2|lp1|kons66:\
        :br#9600:\
        :ct=dev:\
        :fc#0177777:\
        :fs#023:\
        :if=/usr/lbin/la324of:\
        :lf=/usr/adm/lp1err:\
        :lp=/dev/tty11:\
        :mx#0:\
        :of=/usr/lbin/la324of:\
        :pl#33:\
        :pw#500:\
        :sb:\
        :sd=/usr/spool/lpd1:\
        :sh:\
        :xc#0177777:\
        :xf=/usr/lbin/xf:\
        :xs#044000:


NOTE:I have changed if & of parameters from la324of to lpf but, nothing has
changed..


Help me...!


Selcuk KARACA
Unix System Administrator
ASKI
Received on Mon May 12 2003 - 10:05:57 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT