From owner-freebsd-questions Fri Dec 15 08:41:06 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA02822 for questions-outgoing; Fri, 15 Dec 1995 08:41:06 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA02812 for ; Fri, 15 Dec 1995 08:40:58 -0800 (PST) Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id IAA28581 for ; Fri, 15 Dec 1995 08:40:39 -0800 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.11/8.6.9) id RAA04088; Fri, 15 Dec 1995 17:22:57 +0100 Message-Id: <199512151622.RAA04088@gilberto.physik.rwth-aachen.de> Subject: Re: Printing in FreeBSD To: tbrown@icon-stl.net Date: Fri, 15 Dec 1995 17:22:56 +0100 (MET) Cc: questions@FreeBSD.org In-Reply-To: from "Timothy Brown" at Dec 15, 95 08:50:47 am From: Christoph Kukulies Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.org Precedence: bulk > > Okay. Question on printing with FreeBSD, sans ghostscript. The system > is FreeBSD v2.1.0, i'm catting files to /dev/lpt0. The files come out in Is there a peculiar reason why you don't use lpd printing (/etc/printcap)? Either you add a filter to /etc/printcap (apsfilter e.g. or a simple shell script or C-program) ) or you send your printer the sequence to make it understand the carriage control. Here is a snippet that someone else grabbed drom usenet: This issue is overdue to find reflection in the FAQ if it isnt't yet. ------------------------------/etc/printcap----------------------------------- # @(#)printcap 5.3 (Berkeley) 6/30/90 #lp|local line printer:\ # :lp=/dev/lp:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs: lp|LaserJet 4P Printer (Raw):\ :lp=/dev/lpt0:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :mx#0:ff=\033E\033&k2G:fo:sh:tr=\033E: text|LJ4P w/ Unix2Dos Text Preprocess:\ :lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :of=/usr/local/bin/textlj:\ :mx#0:sf:sh: ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\ :lp=/dev/null:sd=/usr/var/spool/lpd:lf=/var/log/lpd-errs:\ :of=/usr/local/bin/gslj:\ :mx#0:sf:sh: #text|LJ4P w/ Unix2Dos Text Preprocess:\ # :lp=/dev/null:\ # :if=/usr/rhh/bin/unix2dos:\ # :rm=localhost:\ # :rp=lp: #ps|LJ4P w/ Ghostscript PS->PCL Preprocess:\ # :lp=/dev/null:\ # :if=/usr/local/bin/gslj:\ # :rm=localhost:\ # :rp=lp: ------------------------------/usr/local/bin/textlj---------------------------- #!/bin/sh PRINTER=lp PATH=/usr/bin:$PATH export PRINTER PATH unix2dos | lpr -h --------------------------/usr/local/bin/gslj-------------------------------- #!/bin/sh TMPDIR=/usr/tmp PRINTER=lp GSLIB=/usr/local/lib/ghostscript/fonts PATH=/usr/local/bin:/usr/bin:$PATH export TMPDIR PRINTER GSLIB PATH #exec gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -- gslp.ps $* #exec gs -sDEVICE=ljet4 -dNOPAUSE gslp.ps - > /usr/rhh/out 2>&1 exec gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=\|lpr gslp.ps - -- Gary Clark II (N5VMF) | FreeBSD support and service gclarkii@FreeBSD.ORG | mail info@gbdata.com for information FreeBSD FAQ at ftp.FreeBSD.ORG in ~pub/FreeBSD/FreeBSD-current/src/share/FAQ/Text/FreeBSD.FAQ > UNIX format with the linefeeds all messed up. How do I fix this? > > Tim > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de