Date: Thu, 19 Sep 1996 02:43:49 -0600 From: Sean Kelly <kelly@fsl.noaa.gov> To: Sergei Barbarash <sgt@netmedia.net.il> Cc: freebsd-questions@freebsd.org Subject: Re: printcap filter for LaserJet 4si Message-ID: <324107C5.41C67EA6@fsl.noaa.gov> References: <199609190713.JAA06852@zaraza.bofh.org.il>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?324107C5.41C67EA6>