Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: if for remote printer local defined
       [not found] <904118947.620371@news.vbs.at>
@ 1998-08-26  4:00 ` Ernest LaBonte
  1998-08-26  4:00   ` Juergen Schroeder
  1998-08-30  4:00 ` Charles M Richmond
  1 sibling, 1 reply; 5+ messages in thread
From: Ernest LaBonte @ 1998-08-26  4:00 UTC (permalink / raw)


Erhard Glueck wrote:

> I need a inpufilter on a specific computer for a remote printer (DEC-Alpha
> OSF1)
> There is a description for LINUX in the german paper c't 17 1998.
> But it doesn't function.
> If I'm not in the right news-group for this question please tell me an other
>
> Thank you for an answere
>
> Erhard Glueck, RTS GmbH A-1100 Wien (gle@rts.co.at)

------
Digital UNIX does not use print filters in a remote lpd print environment.
You will need to preformat the file prior to printing. I can post a shell
script if you need one.

If you are printing to a network printer and are using Digital UNIX V4.0a
or later switch to tcp/ip printing.  Tcp/ip printing provides full printing
functionality including the use of print filters and the generation of
banner pages. This is documented either in the release notes or in the
system admin guide.  If necessary I can also post a brief description on
how to setup the environment.

If you provid more detailed information such as the version of UNIX, the
printer make and model, and how it is connected, I may be able to provide
additional information.

Regards,
Ernest LaBonte

To reply remove ! from e-mail address.
------------





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: if for remote printer local defined
  1998-08-26  4:00 ` if for remote printer local defined Ernest LaBonte
@ 1998-08-26  4:00   ` Juergen Schroeder
       [not found]     ` <904204872.931088@news.vbs.at>
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Schroeder @ 1998-08-26  4:00 UTC (permalink / raw)


Ernest LaBonte <labonte!@!zk3.dec.com> wrote:
: Erhard Glueck wrote:

:> I need a inpufilter on a specific computer for a remote printer (DEC-Alpha
:> OSF1)
:> There is a description for LINUX in the german paper c't 17 1998.
:> But it doesn't function.
:> If I'm not in the right news-group for this question please tell me an other
:>
:> Thank you for an answere
:>
:> Erhard Glueck, RTS GmbH A-1100 Wien (gle@rts.co.at)

: ------
: Digital UNIX does not use print filters in a remote lpd print environment.
: You will need to preformat the file prior to printing. 

Its like Ernest say, like most lpr systems. The old trick is  to  get  a
input  filter to work is to use a _local_ dummy printer /dev/null in the
/etc/printcap. Then the lpd runs the input filter ...

Use a filter  programm  (/usr/local/daemon/filter/if_a2ps  below)  which
catchs stdin and reformat it and send it to the remote printer (raw).

ps|a2ps:\
        :if=/usr/local/daemon/filter/if_a2ps:\
        :lf=/usr/adm/lperr:\
        :lp=/dev/null:\
        :mx#0:\
        :sd=/usr/spool/lpd/a2ps:\

raw|lp1|unix:\
        :lf=/usr/adm/lperr:\
        :lp=:\
        :rm=pcubXX.ub.uni-marburg.de:\
        :rp=unix:\
        :sd=/usr/spool/lpd/raw:\
        :sh:\
        :mx#0:

A minifilter

#!/bin/sh
cat - | lpr -Praw

Hope this helps

	Juergen



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: if for remote printer local defined
       [not found]     ` <904204872.931088@news.vbs.at>
@ 1998-08-27  4:00       ` Juergen Schroeder
  1998-08-27  4:00       ` Timo Felbinger
  1 sibling, 0 replies; 5+ messages in thread
From: Juergen Schroeder @ 1998-08-27  4:00 UTC (permalink / raw)


Erhard Glueck <gle@rts.co.at> wrote:
: This I tried, but it with /dev/null I get the status speed -1 and nothing
: happens

ok I will respond with mail

	Juergen



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: if for remote printer local defined
       [not found]     ` <904204872.931088@news.vbs.at>
  1998-08-27  4:00       ` Juergen Schroeder
@ 1998-08-27  4:00       ` Timo Felbinger
  1 sibling, 0 replies; 5+ messages in thread
From: Timo Felbinger @ 1998-08-27  4:00 UTC (permalink / raw)
  To: Erhard Glueck



On Thu, 27 Aug 1998, Erhard Glueck wrote:

> This I tried, but it with /dev/null I get the status speed -1 and nothing
> happens
> ------
> >: Digital UNIX does not use print filters in a remote lpd print
> environment.
> >: You will need to preformat the file prior to printing.
> >
> >Its like Ernest say, like most lpr systems. The old trick is  to  get  a
> >input  filter to work is to use a _local_ dummy printer /dev/null in the
> >/etc/printcap. Then the lpd runs the input filter ...
> >
> >Use a filter  programm  (/usr/local/daemon/filter/if_a2ps  below)  which
> >catchs stdin and reformat it and send it to the remote printer (raw).
> >

Or, if you prefer a clean and flexible solution, go and get LPRng
from http://www.astart.com/lprng/LPRng.html.
It works fine for me on a small mixed network (Linux, Digital Unix),
allowing an unlimited number of queues to be connected, each one
with a certain filter (like, ASCII --(a2ps)--> PS --(ghostscript)--> PCL).

Look for the term ``bounce queue'' in the documentation, that's what they
call a queue with a filter which is connected to another queue.

Timo Felbinger   (Timo.Felbinger@quantum.physik.uni-potsdam.de)
Quantum Physics Group
Institute of Physics
University of Potsdam, Germany





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: if for remote printer local defined
       [not found] <904118947.620371@news.vbs.at>
  1998-08-26  4:00 ` if for remote printer local defined Ernest LaBonte
@ 1998-08-30  4:00 ` Charles M Richmond
  1 sibling, 0 replies; 5+ messages in thread
From: Charles M Richmond @ 1998-08-30  4:00 UTC (permalink / raw)


Erhard Glueck wrote:
> 
> I need a inpufilter on a specific computer for a remote printer (DEC-Alpha
> OSF1)
> There is a description for LINUX in the german paper c't 17 1998.
> But it doesn't function.
> If I'm not in the right news-group for this question please tell me an other
> 
> Thank you for an answere

You will get a lot of answers about scripts and changing lpr s/w to
LPRng, but if you have DUNIX 4.0x you have an easy solution.

An old style 'remote' printcap entry, with no filters, looks like:

	lp3|3|text:\
      	  :lf=/usr/adm/lp0err:\
     	  :lp=:\
      	  :rm=inpon:\
      	  :rp=text:\
      	  :sd=/usr/spool/lpd0:

While the 4.0x tcp printcap (with filters) looks like:

	lp0|0|lp|hp:\
    	   :af=/usr/adm/lp2acct:\
     	   :ct=tcp:\
     	   :if=/usr/lbin/ps_level2of:\
     	   :lf=/usr/adm/lp2err:\
      	   :lp=@HOSTNAME/SOME_SERVICE_NAME:\
      	   :mx#0:\
      	   :of=/usr/lbin/ps_level2of:\
           :pl#66:\
           :pw#80:\
           :rw:\
           :sd=/usr/spool/lpd2:\
           :xf=/usr/lbin/xf:

Additionally the etc/services file had the following line added:

	SOME_SERVICE_NAME      9100/tcp

The /etc/hosts file must include a line for the printer in the
same way that the 'remote' solution does:

	ip.add.printer	HOSTNAME HOSTNAME.your.com

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com        cmr@koibito.iisc.com  cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695    (617) 367 3151        FAX (617) 723 6861         *
***********************************************************************



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-08-30  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <904118947.620371@news.vbs.at>
1998-08-26  4:00 ` if for remote printer local defined Ernest LaBonte
1998-08-26  4:00   ` Juergen Schroeder
     [not found]     ` <904204872.931088@news.vbs.at>
1998-08-27  4:00       ` Juergen Schroeder
1998-08-27  4:00       ` Timo Felbinger
1998-08-30  4:00 ` Charles M Richmond

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