Article View: comp.lang.postscript
Article #3908Re: GhostScript: How do you send printer output to stdout?
From: Chris Miller
Date: Thu, 01 Oct 1992 02:36
Date: Thu, 01 Oct 1992 02:36
28 lines
1660 bytes
1660 bytes
In article <1992Sep30.124547.1908@athena.mit.edu> gwpoulos@athena.mit.edu (George W. Poulos) writes:
>Hi, I'm sorry if this is the wrong newsgroup to post to, but here is
>my problem. I have GhostScript v2.3 compiled on an SGI Personal Iris
>to which I want to attach an HP LaserJet IIP. I was hoping ...
I use lpr and GhostScript to rasterize for a HPLJ III thusly. (I found
that the ljet3 device in v2.5.1 is flaky, so I use the ljet2p device.)
(/etc/printcap)
ps:\
:lp=/dev/plp:sh:\
:if=/usr/spool/lpd/bin/ps.filter:\
:af=/usr/adm/lpd-acct:lf=/usr/spool/lpd/plp/log:\
:sd=/usr/spool/lpd/plp:
(/usr/spool/lpd/bin/ps.filter)
#!/bin/sh
# postscript interpreter filter
# Christopher J. Miller 920904
echo plp gs `date` >> /usr/spool/lpd/plp/log
#/usr/appl/bin/gs -dNOPAUSE -sDEVICE=ljet3 -sOutputFile=/tmp/$$.gs - > /dev/null
/usr/appl/bin/gs -dNOPAUSE -sDEVICE=ljet2p -sOutputFile=/tmp/$$.gs - > /dev/null
cat /tmp/$$.gs
echo "eE" | tr "e" "\033"
/bin/rm /tmp/$$.gs
--
Technical Details
Message-ID:
<1992Oct1.023608.20832@eagle.lerc.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!eagle!roger.lerc.nasa.gov!togoodReferences:
<1992Sep30.124547.1908@athena.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!eagle!roger.lerc.nasa.gov!togood From: togood@roger.lerc.nasa.gov (Chris Miller) Subject: Re: GhostScript: How do you send printer output to stdout? Message-ID: <1992Oct1.023608.20832@eagle.lerc.nasa.gov> Keywords: lpr GhostScript SGI Sender: news@eagle.lerc.nasa.gov Nntp-Posting-Host: roger.lerc.nasa.gov Organization: NASA Lewis Research Center [Cleveland, Ohio] References: <1992Sep30.124547.1908@athena.mit.edu> Distribution: usa Date: Thu, 1 Oct 1992 02:36:08 GMT Lines: 28