how to send printer esape codes ..?

From: selcuk karaca (selcuk.karaca@aski.gov.tr)
Date: Mon May 12 2003 - 06:10:29 EDT


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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:18 EDT