From owner-freebsd-questions Sun May 12 15:39:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA20638 for questions-outgoing; Sun, 12 May 1996 15:39:57 -0700 (PDT) Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA20633 for ; Sun, 12 May 1996 15:39:54 -0700 (PDT) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA23326; Sun, 12 May 96 22:39:53 GMT Message-Id: <9605122239.AA23326@fslg8.fsl.noaa.gov> Received: by emu.fsl.noaa.gov (1.40.112.3/16.2) id AA105590795; Sun, 12 May 1996 16:39:55 -0600 Date: Sun, 12 May 1996 16:39:55 -0600 From: Sean Kelly To: kuku@gilberto.physik.rwth-aachen.de Cc: freebsd-questions@freefall.freebsd.org In-Reply-To: <199605121415.QAA19502@gilberto.physik.rwth-aachen.de> (kuku@gilberto.physik.rwth-aachen.de) Subject: Re: tcp printing problem 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 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/