From owner-freebsd-questions Sun May 12 23:36:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id XAA21940 for questions-outgoing; Sun, 12 May 1996 23:36:09 -0700 (PDT) Received: from mail.rwth-aachen.de (mail.RWTH-Aachen.DE [137.226.144.9]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id XAA21933 for ; Sun, 12 May 1996 23:36:05 -0700 (PDT) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de) by mail.rwth-aachen.de (PMDF V5.0-4 #13110) id <01I4NFBI67SG000JZV@mail.rwth-aachen.de>; Mon, 13 May 1996 08:19:21 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id IAA23128; Mon, 13 May 1996 08:26:31 +0200 Date: Mon, 13 May 1996 08:26:30 +0200 (MET DST) From: "Christoph P. Kukulies" Subject: Re: tcp printing problem In-reply-to: <9605122239.AA23326@fslg8.fsl.noaa.gov> To: kelly@fsl.noaa.gov (Sean Kelly) Cc: kuku@gilberto.physik.rwth-aachen.de, freebsd-questions@freefall.freebsd.org Reply-to: Christoph Kukulies Message-id: <199605130626.IAA23128@gilberto.physik.rwth-aachen.de> MIME-version: 1.0 X-Mailer: ELM [version 2.4ME+ PL16 (25)] Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >>>>> "Christoph" == "Christoph P Kukulies" writes: > > Christoph> I'm having a weird printer problem. A Declaser 3500 is > Christoph> on the network and I tried to establish TCP/IP printing > Christoph> to that printer. On advice of Garett Wollman I'm using > Christoph> ttcp (comp.unix.sources) > > Don't use an output filter. LPD will start an output filter to print > the header page. It then sends the magic sequence \031\001 and will Ah, now I understand what this magic sequence in printjob.c (lpd) is for. > wait for the output filter to suspend itself, which ttcp or the script > that's calling it will never do. > > Instead, just use an input filter *only*. > > /etc/printcap: > > lp0|lp||rlp|lw|ps|postscript|PostScript|lp1|lw1|postscript1|PostScript1:\ > :lp=/dev/null:\ > :mx#0:\ > :if=/usr/local/bin/printe:\ > :sd=/var/spool/printe: > > /usr/local/bin/printe: > > #!/bin/sh > exec /usr/local/bin/infilter | /usr/local/bin/ttcp -D -t -p 10001 10.0.0.64 > > Finally, ttcp is really hefty for this, but it should work. About 10 > lines of perl in the handbook under `Printing' should also do the job. > > -- > Sean Kelly > NOAA Forecast Systems Laboratory kelly@fsl.noaa.gov > Boulder Colorado USA http://www-sdd.fsl.noaa.gov/~kelly/ > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de