[230] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Formatted printing to a NT printer

daemon@ATHENA.MIT.EDU (Geoffrey D. Bennett)
Mon Oct 21 18:42:58 1996

From: "Geoffrey D. Bennett" <geoffrey@netcraft.com.au>
To: iweft@ipax.com.au
Date: Mon, 21 Oct 1996 11:29:49 +0930 (CST)
Cc: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.91.961021111455.2656G-100000@archenland> from "Robert Hart" at Oct 21, 96 11:33:08 am
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Hi Robert,

you wrote:
> I set up a local queue using the DJ550C in the printtool and then tried 
> modifying the entry to read...
> 
> lp|dj:\
>         :sd=/var/spool/lpd/hp850c:\
>         :mx#0:\
>         :rm=hwin.interweft.com.au:\
>         :rp=850C:\
>         :if=/var/spool/lpd/hp850c/filter:\
>         :sh:

The problem here is that lpr/lpd doesn't support input filters for
remote printers; the idea is that the remote printer is the one that
does the filtering.  A common solution is to set up two printers: a
remote printer with no filtering, and a local printer pointing to
/dev/null, with a filter that does an lpr of the filtered data to the
remote printer.

Something along these lines should work:

/etc/printcap:
-----
lp|dj:\
	:lp=/dev/null:\
	:sd=/var/spool/lpd/hp850c:\
	:if=/var/spool/lpd/hp850c/filter:
lp-network:\
	:sd=/var/spool/lpd/hp850c-network:\
	:rm=hwin.interweft.com.au:\
	:rp=850C:
-----

/var/spool/lpd/hp850c/filter:
-----
#!/bin/sh
/var/spool/lpd/hp850c/ps-filter | lpr -Plp-network
-----

And move your current filter to /var/spool/lpd/hp850c/ps-filter.

Regards,
-- 
Geoffrey D. Bennett (geoffrey@netcraft.com.au)
Computer Systems Manager, NetCraft Australia
http://www.netcraft.com.au/geoffrey/
Red Hat Linux Resellers: http://www.netcraft.com.au/redhat/


--
  PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-HOWTO 
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post