From owner-freebsd-questions Tue Oct 22 23:46:12 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA25931 for questions-outgoing; Tue, 22 Oct 1996 23:46:12 -0700 (PDT) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.225.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA25926 for ; Tue, 22 Oct 1996 23:46:05 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id HAA29999; Wed, 23 Oct 1996 07:46:44 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id HAA25282; Wed, 23 Oct 1996 07:51:46 +0100 From: Christoph Kukulies Message-Id: <199610230651.HAA25282@gilberto.physik.rwth-aachen.de> Subject: Re: Postscript Printing problems (printcap) In-Reply-To: from Brandon Gillespie at "Oct 22, 96 03:19:32 pm" To: brandon@glacier.cold.org (Brandon Gillespie) Date: Wed, 23 Oct 1996 07:51:45 +0100 (MET) Cc: freebsd-questions@FreeBSD.org Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > I am experiencing a very odd problem. The first file I send to the > printer will print fine. Any subsequent files will not print, and the > light on the priter will blink indefinitely. However, I accidentally > stumbled upon something that causes it to continue to print other things. > If I run tip on the same device as the lpd is using, I get echo'd output > of the subsequent files I print and everything works (??). > > Printer: Apple Laserwriter II NTX > > /etc/printcap entry: > > lp|ps|PS|S|Apple|Apple LaserWriter IINTX:\ > :sh:\ > :mx=0:\ > :br#9600:\ > :sd=/var/spool/lpd/isp:\ > :lp=/dev/ttydl:\ > :if=/usr/local/libexec/psif:\ > :lf=/var/log/isp.log: > > > /etc/remote entry: > > printer:dv=/dev/ttydl:br#9600:pa=none > > I can print a file with 'lpr file.ps' and it will print. Doing the same > again it does not print, and the light blinks indefinitely. However if I > type 'tip printer' I see all of the output of the second file, with the > printer's responses etc as it parses/compiles the file, ending with the > appropriate 'showpage' and subsequent printing. > > WHY is it doing this?? In /etc/rc.serial I am setting the device as > simply 'default l'. I don't know much about LW and it might as well be a line (ttyd) problem as you point out but when debugging Postscript printer problems I often found it useful to do a cat -u /dev/ttyd1 >/var/log/PS-log (e.g. in /etc/rc.local) and later do a tail -f /var/log/PS-log while sending jobs to the printer to see any anomalies. Might it have to do something with ^D being required for the LW at the end of a file or not? > > -Brandon Gillespie > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de