From owner-freebsd-questions Thu Sep 19 01:44:14 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA21082 for questions-outgoing; Thu, 19 Sep 1996 01:44:14 -0700 (PDT) Received: from rosemary.fsl.noaa.gov (rosemary.fsl.noaa.gov [137.75.8.41]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA21018 for ; Thu, 19 Sep 1996 01:44:08 -0700 (PDT) Received: from rosemary.fsl.noaa.gov (rosemary.fsl.noaa.gov [137.75.8.41]) by rosemary.fsl.noaa.gov (8.7.5/8.6.9) with SMTP id CAA06168; Thu, 19 Sep 1996 02:43:52 -0600 (MDT) Message-ID: <324107C5.41C67EA6@fsl.noaa.gov> Date: Thu, 19 Sep 1996 02:43:49 -0600 From: Sean Kelly Organization: NOAA Forecast Systems Laboratory X-Mailer: Mozilla 3.0b6Gold (X11; I; FreeBSD 2.1.5-RELEASE i386) MIME-Version: 1.0 To: Sergei Barbarash CC: freebsd-questions@freebsd.org Subject: Re: printcap filter for LaserJet 4si References: <199609190713.JAA06852@zaraza.bofh.org.il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Sergei Barbarash wrote: > #!/bin/sh > /usr/local/bin/gs -q -sDEVICE=ljet4 -sOutputFile=- -r300 -g2400x3333 -dNOPAUSE > -- $@ Two problems: First, an lp filter script reads from standard in and writes to standard out, which is the printer. But standard out in your printcap is /dev/null, and you presumably want to redirect this to the LJ4si queue. So, stick | lpr -PLJ4si at the end of the line. Next, the filter arguments are being passed onto Ghostscript, which then tries to read them as input files. What you want to do is have Ghostscript read its standard input. So, change your invocation to exec /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- - | lpr -PLJ4si -- Sean Kelly NOAA Forecast Systems Laboratory Boulder Colorado USA