*BSD News Article 52923


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!chi-news.cic.net!uwm.edu!fnnews.fnal.gov!nntp-server.caltech.edu!bombay.gps.caltech.edu!STAN
From: stan@bombay.gps.caltech.edu ("Stan")
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Printing filter question
Date: 12 Oct 1995 15:56:36 GMT
Organization: USGS
Lines: 41
Message-ID: <45jdrl$pi9@gap.cco.caltech.edu>
Reply-To: stan@bombay.gps.caltech.edu
NNTP-Posting-Host: bombay.gps.caltech.edu

I have 2.0.5 running on a 486-DX/50 here at the office, and I am trying to 
set up a print queue to send Postscript to a big HP DesignJet plotter.  I 
set up an entry for it in /etc/printcap that looks like this:

bps|Big HP plotter:\
          :lp=:rm=131.215.66.240:rp=lp:\
          :sd=/var/spool/bigps:lf=/var/log/bigps-errs:\
          :sh:mx#0:sf:

This works great.

Now I want to set up a queue that will use psresize to scale up plots from 
letter size paper to E size.  I added the following printcap entry:

ps4x|scale up postscript:\
          :lp=:rm=131.215.66.240:rp=lp:\
          :sd=/var/spool/ps4x:lf=/var/log/ps4x-errs:\
          :if=/usr/local/lib/ps4xif:\
          :sh:mx#0:sf:rs:
          
The input filter script is very simple:

#!/bin/sh
/usr/local/bin/psresize -q -Pletter -h44in -w34in

If I am in a window and do this:

cat postscriptfile.ps | /usr/local/lib/ps4xif | lpr -Pbps

I get my plot scaled up big.  If I just print to the ps4x queue, I get it 
small.  What am I doing wrong here?  It seems as if the input filter script 
is not being called.

Thanks.

--
-------------------------------------------------------------------------------
Stan Schwarz                |    "Drifting like a stoned dog..."
stan@bombay.gps.caltech.edu |            - My Life With The Thrill Kill Kult
-------------------------------------------------------------------------------
          Since I killfiled *@Prodigy.com, I've been much happier!