From owner-freebsd-questions Sun Jul 16 15:55:33 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA12294 for questions-outgoing; Sun, 16 Jul 1995 15:55:33 -0700 Received: from SLINKY.CS.NYU.EDU (SLINKY.CS.NYU.EDU [128.122.153.144]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id PAA12288 for ; Sun, 16 Jul 1995 15:55:29 -0700 Received: by SLINKY.CS.NYU.EDU (4.1/1.34) id AA27800; Sun, 16 Jul 95 18:56:28 EDT Date: Sun, 16 Jul 1995 18:56:27 -0400 (EDT) From: Joseph Steinberg To: Sean Kelly Cc: questions@freebsd.org Subject: Re: 4 quickies (hopefully) In-Reply-To: <9507162124.AA16976@emu.fsl.noaa.gov> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@freebsd.org Precedence: bulk The file that you gave me causes the printer to get stuck in an endless loop -- saying that there is some error with cat... # @(#)printcap 5.3 (Berkeley) 6/30/90 # 1 (my original) #lp|local line printer:\ # :lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpd-errs: # 2 the one you gave me #lp|HP LaserJet 4 with PostScript and 6 MB:\ # :lp=/dev/lpt0:mx#0:sh:if=/bin/cat: When I use the first definition for lp -- I get blank pages -- and one page with a little junk on it; When I use the second I get some error to stdout over and over, and tons of blank pages from the printer... JS On Sun, 16 Jul 1995, Sean Kelly wrote: > >>>>> "Joseph" == Joseph Steinberg writes: > > Joseph> ( 1 ) I am having difficulty configuring lp. I have an > Joseph> HP-Laserjet 4 with Postscript and 6 megs of RAM. I can > Joseph> print PS files by su-ing to root and cat-ing them to > Joseph> /dev/lpt0 -- but I cannot print with lp (I get blank pages > Joseph> from the printer.) Please advise. (I probably did not > Joseph> configure printcap properly, but I am not sure what to > Joseph> do.) > > I'd like to see a copy of your /etc/printcap file, but if you're in a > hurry, try this diminutive /etc/printcap: > > lp|HP LaserJet 4 with PostScript and 6 MB:\ > :lp=/dev/lpt0:mx#0:sh:if=/bin/cat: > > Joseph> ( 3 ) Is there a way to display a message before the > Joseph> 'login:' prompt? > > See man gettytab(4) and /etc/gettytab. > > -- > Sean Kelly > NOAA Forecast Systems Lab, Boulder Colorado USA > > Smoke ballpoint pens. > -- One of 120 ways to annoy your roommate. > _ _ | | ___ ___ ___ _ __ | |__ Joseph Steinberg _ | |/ _ \/ __|/ _ \ '_ \| '_ \ steinber@slinky.cs.nyu.edu | |_| | (_) \__ \ __/ |_) | | | | http://haven.ios.com/~likud/steinber/ \___/ \___/|___/\___| .__/|_| |_| +1-201-833-9674 |_|