From: dfox@hip-hop.suvl.ca.us (David Fox) Subject: Re: [Q] Printing question Date: Wed, 21 Apr 1993 01:56:17 GMT
sxl5151@cs.rit.edu (Shen-Wei X Li) wrote:
>The other one is by using GhostScript:
>
> GS> (ljet2p) selectdevice
> GS> (chess.ps) run
This sequence doesn't say to actually send data out to the ljet2p
printer, it only says to write the file out in ljet2p format. The
-sOutputFile setting actually says whether it should go to a file
or to a real device, or lpr.
> # gs -sDEVICE=ljet2p -sOutputFile=|lpr chess.ps
>But if I use the lpr pipe, then it will die....
You aren't using the pipe correctly. The '|' symbol will get
interpreted by your shell, so you need to prefix it with a '\', i.e:
# gs -sDEVICE=ljet2p -SOutputFile=\|lpr chess.ps
-- David E. Fox email: hip-hop!dfox@amdahl.com 5479 Castle Manor Drive San Jose, CA 95129 Thanks for letting me change the magnetic 408/ 253-7992 images on your hard drive.