tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary: Landscape Printing on Digital Unix
@ 1997-02-27  0:54 Nagaraja, Raja
  0 siblings, 0 replies; only message in thread
From: Nagaraja, Raja @ 1997-02-27  0:54 UTC (permalink / raw)
  To: tru64-unix-managers

I found the solution. Thanks to:
Joel Wilson  (JWilson@paysaver.org)
Chris Duschka     ( chris@vinfiz.mcclellan.af.mil )
H. Blakely Williford

My Original Posting Was:

I have set up two printers recently on my system running Digital Unix
> 3.2c. Following is the printcap entry that I have used:
> 
> # Fyshwick ITI_ADMIN
> iti_admin|lp96|ITI_ADMIN|Iti_Admin:\
>         :if=/usr/lbin/actewps2:\
>         :lf=/usr/adm/lp96err:\
>         :lp=:\
>         :of=/usr/lbin/ln03rof:\
>         :rm=fysh01_ps.actew.oz.au:\
>         :rp=TEXT:\
>         :sd=/usr/spool/lpd96:\
>         :sh:
> 
> When I try to print Landscape on these printers using:
> 
> lpr -Piti_admin -Olandscape .profile  I get the out put only in
> Portrait. If I force the orientation on the printer using front panel to
> be Landscape, I get it in Landscape. I have other printers which use LAT
> there is no problem. I only have the problem with the TCP/IP printers.
> Am I missing something?.

The Answer was to create an output filter file and a dummy printer. It
is given in Joel's message which is as under:

Raja;
I recently installed a printer and had the same problem.  After 
talking with Digital,  I found that the filters 'if' and 'of' are 
ingnored in a remote printer.  Digital said that it's assumed the 
remote host will do this.  

So now what they suggested was to make a dummy printer and then 
combine the escape codes and the file you wish to print.

I am attaching the email that was sent to me.


joel

Subject:          How to send escape sequences to remote printer

This is provided as is and is not guaranteed by Digital Equipment
Corporation.


----------------------------------------------------------------------
---------
 HOW TO (Add and escape sequence to a file using printcap filters)
----------------------------------------------------------------------
---------

1) Lets assume for simplicity that you have a remote print queue as
follows
   that goes out to a remtoe system.  You want to add escape sequences
   to the beginning of each print job.  Your original printcap entry
   looks as follows...


lp|lp0|0:\
 :lf=/usr/adm/lperr:\
 :lp=:\
 :rm=remsys:\
 :rp=text:\
 :sd=/usr/spool/lpd:


2) put the escape sequences you wish to add in a file.  (note: when
using 
   the vi editor, you can enter an escape character with a ^v^[  
   (control v , control [)  -- note: this example uses the file
   /escape

   you can verify the escape sequence is in the file with the od
   utility, for example on file /escape  "# od -ba /escape"

3) now create a second printcap entry as follows..  you can use the
lprsetup
   utility, select printer type unknown, and modify so it looks like
   this..

lp1|1|addesc:\
        :lf=/usr/adm/lp1err:\
        :lp=/dev/null:\
        :mx#0:\
        :of=/usr/lbin/addesc:\
        :sd=/usr/spool/lpd1:\
        :xf=/usr/lbin/xf:


4) create the file (filter) /usr/lbin/addesc with the vi editor and
place 
   in it the following two lines..

#! /bin/csh
/bin/cat /escape - | lpr -Plp0


5) now make the file (filter) you just created executable with the
command..

# chmod 755 /usr/lbin/addesc

----------------------------------------------------------------------
--------- Troubleshooting tips:

If you place printable characters in the '/escape' file, such as xxx,
you can visually verify that the file is in fact being added to the
beginning of the file.  If you want the '/escape' file to be placed at
the end of the print file instead of the beginning of the file, change
the location of the '-' in the /usr/lbin/addesc file as follows...
 from 
/bin/cat /escape - | /usr/lib/lpdfilters/la75of
 to
/bin/cat - /escape | /usr/lib/lpdfilters/la75of


If you have additional questions on this procedure please contact the
Digital Equipment Corporation Customer Service Center at
1-800-354-9000.

_________________
Joel Wilson.........................E-Mail        JWilson@Paysaver.org
MIS Manager.........................Lombard, IL Office  (630) 268-8900
Paysaver Credit Union...............Lombard, IL Fax     (630) 268-8981
....................................Toll Free           

Thanks for the help.

Regards

Raja


B.S. (Raja) Nagaraja                      
Systems Support Specialist
Business Systems Division
ACTEW Corporation
GPO BOX 366, Canberra ACT 2601
Australia        Phone: 616 2483143    Fax: 616 2483349
e-mail: Raja.Nagaraja@actew.com.au

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-27  0:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-27  0:54 Summary: Landscape Printing on Digital Unix Nagaraja, Raja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox