*BSD News Article 83823


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.coverform.lan (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: PostScript
Date: 27 Nov 1996 21:19:24 -0000
Organization: Coverform Ltd.
Lines: 35
Sender: brian@awfulhak.demon.co.uk
Message-ID: <57ib8s$1iq@anorak.coverform.lan>
References: <329B5388.41C67EA6@pi.net>
Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <329B5388.41C67EA6@pi.net>,
	Wouter de Boer <wouter.deboer@pi.net> writes:
: Hello,
: 
: I have a HP DeskJet 500 printer. I have configured my printer so that it
: would print plain text. However I want also to print PostScript files. I
: have configured my "printcap" file with the following statements:
: 
: HP500:\
>  :sh:sd=/var/spool/lpd/RainBow:\
>  :lp=/dev/lpt0:\
>  :if=/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500
: -sOutputFile=-
: 
: But I get the following message:
: 
: Nov 26 21:29:27 Amigo lpd[402]: cannot execv /usr/local/bin/gs -dSAFER
: -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=-
: 
: Can anybody help me to solve this problem ?

Just put the above in a script and specify the script as the filter.
lpd treats the bit between the :'s as a program name - and calls
exec() using it.... I think it should be changed - but it probably
won't be.

Bear in mind too - output filters and network printing doesn't work
together either.  I've fixed this on my machine.  Drop me a line if
you want the (two line) patch.

-- 
Brian <brian%anorak.coverform.lan@awfulhak.demon.co.uk>
      <http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.