From owner-freebsd-questions Mon Oct 30 14:29:53 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA21174 for questions-outgoing; Mon, 30 Oct 1995 14:29:53 -0800 Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id OAA21169 for ; Mon, 30 Oct 1995 14:29:50 -0800 Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA18721; Mon, 30 Oct 95 16:29:49 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA27452; Mon, 30 Oct 1995 15:29:47 -0700 Date: Mon, 30 Oct 1995 15:29:47 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) Message-Id: <9510302229.AA27452@emu.fsl.noaa.gov> To: dbaker@baker.err.com Cc: questions@freebsd.org In-Reply-To: (message from Daniel Baker on Thu, 26 Oct 1995 19:49:01 -0500 (CDT)) Subject: Re: Printing with HP Deskjet Sender: owner-questions@freebsd.org Precedence: bulk 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