From owner-freebsd-questions Mon Oct 30 19:48:05 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA08927 for questions-outgoing; Mon, 30 Oct 1995 19:48:05 -0800 Received: from uuneo.neosoft.com (mailbot@uuneo.neosoft.com [206.109.1.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA08917 for ; Mon, 30 Oct 1995 19:47:59 -0800 Received: (from mailbot@localhost) by uuneo.neosoft.com (8.7.1/8.7.1) id VAA06708; Mon, 30 Oct 1995 21:47:54 -0600 (CST) Received: from concorde.neosoft.com(206.109.14.16) by uuneo.neosoft.com via smap (V1.3) id sma006656; Mon Oct 30 21:47:34 1995 Date: Mon, 30 Oct 1995 21:48:07 -0600 (CST) From: Daniel Baker X-Sender: dbaker@concorde.neosoft.com To: Sean Kelly cc: questions@freebsd.org Subject: Re: Printing with HP Deskjet In-Reply-To: <9510302229.AA27452@emu.fsl.noaa.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk hey, thanks, everybody that program that was posted got me going.. On Mon, 30 Oct 1995, Sean Kelly wrote: > > Okay, first the /etc/printcap. You need a colon and backslash here: > ------------------------------------------------------------------------ > deskjet:ps:PS:S:lp:HP DeskJet Printer:\ > ------------------------------------------------------------------------ > > Each of these lines needs a backslash: > ------------------------------------------------------------------------ > :sh:sd=/var/spool/lpd/deskjet:\ > :lp=/dev/lpt0:\ > ------------------------------------------------------------------------ > > The last line is fine. > > Now, for the script /usr/local/libexec/hpif. This needs to be all one > line (but it's possible your mailer word wrapped it and it already is > one line), and I think you want to use "cdj550" instead of "djet500": > ------------------------------------------------------------------------ > /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=cdj550 -sOutputFile=- - \ > ------------------------------------------------------------------------ > > This should be "exit 0" not "exit 2": > ------------------------------------------------------------------------ > echo $first_line && cat && printf "\f" && exit 0 > ------------------------------------------------------------------------ > > Let me know if that helps ... or not. Good luck! > > -- > Sean Kelly > NOAA Forecast Systems Laboratory, Boulder Colorado USA > > I just got out of the hospital. I was in a speed reading accident. I > hit a book mark and flew across the room. -- Steven Wright > Daniel Baker -- NeoSoft Student Asst. (UseNet, FTP & CivNet Admin.) DBaker@NeoSoft.COM DBaker@Baker.err.COM ** http://www.neosoft.com/neosoft/staff/dbaker/ ** ** http://www.baker.err.com/ **