has@ztivax.UUCP (Hans-Albert Schneider) (04/12/89)
Hi, there! I have a question concerning printing in BSD4.2. We have an imagen cx laser printer connected to one of our apollos (DN4000, SR9.7.0.3 and Unix SR9.5) via serial line. How to tell lpr / lpd to handle TeX output (.dvi files) properly? I tried to specify a filter for dvi files in printcap and call lpr with the -d option -- didn't work. (Specified as ":df=script:" where script is a shell script that simply calls /usr/local/imagen1, the dvi-to-impress filter [impress is the layout description language of the printer]; specifying the filter directly doesn't work due to different options). I finally tried a printcap entry of its own: dvi|for testing only:\ :sd=/bsd4.2/usr/spool/lpd/dvi:lf=/bsd4.2/usr/adm/dvi-errs:\ :pc=/usr/local/imagen1 -p -| /com/prf - -pr cx -ndb -site //odin -transparent:\: :lp=/dev/null:if=/usr/lib/lpf:af=/usr/adm/dviacct: Guess -- it didn't work either. This was some time ago, so I don't remember the messages in /usr/adm/dvi-errs . The problem is of low interest on the apollos, where the pipe from the pc field above could be (and, indeed, is) used directly. However, there are some suns using this printer as a remote printer, and their users do not all have accounts on the apollos. (Those who do have accounts just pipe the output of "imagen1" through "rsh apollo21 /com/prf ...".) BTW, Is there a filter for sun rasterfiles (screendumps)? I'll be grateful for every suggestion or pointer. Hans-Albert Schneider --------------------------------------------------------------------------- paper mail: email: ARPA: has@ztivax.siemens.com Siemens AG, ZFE F 2 INF 21 or: has%ztivax@siemens.siemens.com Otto-Hahn-Ring 6, D-8000 Munich 83 Europe: ...!mcvax!unido!ztivax!has Federal Republic of Germany Germany: has@ztivax.UUCP phone: (+49) 89 636 45 890 others: "Ask your local Guru"