tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Blom, Wayne" <wayne.blom () faulding ! com ! au>
To: tru64-unix-managers
Subject: SUMMARY:Landscape printing.
Date: Thu, 01 May 1997 00:07:35 +0000	[thread overview]
Message-ID: <96078612210100.tru64-unix-managers.marc@archive.invalid> (raw)

Thanks go to 
Raja Nagaraja, 
Ran Zahor, 
Avi Shapiro (I hope that is right) and 
Richard Sharpe.

Richard's answer solved the problem for us.
My colleague's solution thanks to Richard is as follows;
------------------------------------------------------------------------
----------------------------------
 I created another printer in the printcap called 55.  The command is
lpr -P55 filename.

The steps I took was,
1) I created a pass through printcap entry
   ex)
 ----------------------------------------------------------------------
#
# Filter to print landscape -- in IS -- on IS2
#
lp55|55|pass-through entry:\
        :lp=/dev/null:\
        :mx#0:\
        :of=/usr/lbin/passtolp2:\
        :sd=/usr/spool/lpd55:
 -----------------------------------------------------------------------
This is for:
2|lp1|hp4mp1|is2|lp2|p-usnj2:\
        :if=/usr/lbin/hplaserof:\
        :lf=/usr/adm/lp2err:\
        :lp=:\
        :of=/usr/lbin/hplaserof:\
        :pl#60:\
        :pw#132:\
        :rm=p-usnj2:\
        :rp=text:\
        :sd=/usr/spool/lpd2:


Then I created a file called /usr/lbin/passtolp2 with 775 permissions.
 -----------------------------------------------------------------------
-----
$ more passtolp2
#!/bin/csh -f
/bin/cat | /usr/lbin/hplaserof -w132 | lpr -Pis2
 -----------------------------------------------------------------------
---
After this, I had to create a file /usr/spool/lpd55
chown daemon.daemon lpd55

This is all I have to get this to work.  It prints out beautifully!



See original question below
=============================================================

I have a question relating to printing landscape on UNIX.
I tried to add an entry to the /etc/printcap to act as a filter.
--------------------------------------snip------------------------------
--------------------
#
# Filter to print landscape-in IS-on IS2
#
lp55|55|pass-through entry:\
        :lp=/dev/null:\
        :mx#0:\
of=/usr/lbin/passtolp2:\
sd=/usr/spool/lpd55:
----------------------------------------snip----------------------------
----------------------
This is supposed correspond to this entry below which is also contained
in the /etc/printcap.
------------------------Snip
2|lp1|hp4mp1|is2|lp2|p-usnj2:\
        :if=/usr/lbin/hplaserof:\
        :lf=/usr/adm/lp2err:\
        :lp=:\
        :of=/usr/lbin/hplaserof:\
        :pl#60:\
        :pw#132:\
        :rm=p-usnj2:\
        :rp=text:\
        :sd=/usr/spool/lpd2:

---------------snip-------------------------------
I also added this file in the /usr/lbin/passtolp2 in the appropriat
directory.
$ more passtolp2
#!/bin/csh -f
/bin/cat | /usr/lbin/hplaserof -w132 | lpr -Pis2
----------------------snip----------------------------------------------
--

As far as I know what is supposed to happen is, when I type $lpr -P55
filename
at the command prompt, I should be able to print landscape to the IS2
printer in our office.  However, it does not work.  Actually, nothing at
all comes out of the printer.
Can you advise please?

Wayne Blom
Systems Manager
F H Faulding & Co Limited

                 reply	other threads:[~1997-05-01  0:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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