From owner-freebsd-doc Fri Sep 6 01:54:30 1996 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA06354 for doc-outgoing; Fri, 6 Sep 1996 01:54:30 -0700 (PDT) Received: from rzdspc1.informatik.uni-hamburg.de (root@rzdspc1.informatik.uni-hamburg.de [134.100.9.61]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA06348 for ; Fri, 6 Sep 1996 01:54:22 -0700 (PDT) Received: from rzdspc2.informatik.uni-hamburg.de (root@rzdspc2.informatik.uni-hamburg.de [134.100.9.62]) by rzdspc1.informatik.uni-hamburg.de (8.7.5/8.7.3) with ESMTP id KAA12708 for ; Fri, 6 Sep 1996 10:54:14 +0200 (MET DST) Received: from rzdspc2 (benecke@localhost [127.0.0.1]) by rzdspc2.informatik.uni-hamburg.de (8.7.5/8.7.3) with SMTP id KAA08329 for ; Fri, 6 Sep 1996 10:54:13 +0200 (MET DST) Message-ID: <322FE6B3.7085@informatik.uni-hamburg.de> Date: Fri, 06 Sep 1996 10:54:11 +0200 From: Carsten Benecke X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: freebsd-doc@FreeBSD.ORG Subject: Section 7.6.1.5 Output Filters Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-doc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, you have done a great job. After reading your notes about the BSD printing system I was able to write my own input and output filters for our postscript printers. There ist one thing you may want to update in section 7.6.1.5 (Output Filters). If you ask lpr for copies (e.g. lpr -#3 text.ps) the lpd will send the code \031\001 to the of-filter each time it starts the if-filter. After an if-filter process has printed one copy the lpd will issue a SIGCONT (for its of-child). So the of-filter has to receive the code \031 \001 and stop itself until it receives an EOF on STDIN (e.g. the lpd closes the pipe). This is true for our SunOS (BSD-like) printing system. It may be true for FreeBSD. Bye, CB -- Carsten Benecke Universitaet Hamburg, FB-Informatik (Rechenzentrum) Vogt-Koelln-Str. 30, 22527 Hamburg Behoerde: 9003-2294 email: benecke@informatik.uni-hamburg.de Tel.: 040 5494-2294