From owner-freebsd-questions Thu Aug 10 11:35:57 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id LAA16447 for questions-outgoing; Thu, 10 Aug 1995 11:35:57 -0700 Received: from ix2.ix.netcom.com (ix2.ix.netcom.com [199.182.120.1]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id LAA16441 for ; Thu, 10 Aug 1995 11:35:56 -0700 Received: from by ix2.ix.netcom.com (8.6.12/SMI-4.1/Netcom) id LAA29873; Thu, 10 Aug 1995 11:32:05 -0700 Date: Thu, 10 Aug 1995 11:32:05 -0700 Message-Id: <199508101832.LAA29873@ix2.ix.netcom.com> From: fadorno@ix.netcom.com (Fred Adorno ) Subject: Re: Printcap and Laser printer To: Christoph Kukulies Cc: marino.ladavac@aut.alcatel.at Cc: kelly@fsl.noaa.gov Cc: questions@FreeBSD.org Sender: questions-owner@FreeBSD.org Precedence: bulk You wrote: > >> >> You wrote: >> > >> >> >> >> I have not been able to configure my Epson laser printer with this >> >> software. It is setup for a single user on a 486DX66 machine. The >> >> printer device is lpt0. Please help me!!!!! >> > >> >What happens, if you type >> > >> >lpr /etc/passwd >> > >> >Does anything come out of the printer on a freshly powered up and >> rebooted >> >system ?(I'm saying that because the history sometimes can >> >make things more complicated). >> > >> >> >> >Send me your /etc/printcap >> > >> >Consult the file /var/log/lpd-errs (normally). >> > >> > >> >--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de >> > >> Thanks for responding, Chris! I did as you ask and I got an error msg >> on screen that reads "lpd [158]: cannot execv >> /usr/libexec/lpr/#!/bin/sh:" >> >> My printcap reads: >> >> lp|epson|action|laser|Epson Actionlaser 1500:\ >> :lp=/dev/lpt0:sd=/var/spool/lpd/epson:mx#0:\ >> :if=/usr/libexec/lpr/#!/bin/sh:\ >> printf "\033&k3G" >> exec /bin/cat >> >Maybe this 'in-line shell script in printcap is a tricky >feature but unless I had understood that trick in full >and were sure that FreeBSD supports feature >I'd be conservative and wrtoe the if line as follows > > :if=/usr/local/bin/lpf:\ > >and create that script 'lpf' in /usr/local/bin: > >#!/bin/sh >echo "\033&k3G" >exec /bin/cat > >proviced that the guy who gave you that escape sequence knows what he's doing. > >See what happens then. > >> What's the solution? When it prints, I get garbage and it form feeds >> forever. When I do the lptest, I only get 1 line of ASCI characters >> and it form feeds indefinitely. >> > >--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > I did as you said. Still when I do the lptest, I get 1 line of ASCII and form feeds forever. I get the feeling also that I should be doing something with "chmod" and other when I keep changing this printcap. Show me how to undo all of this and let's start from scratch. The printer emulates HP III LaserJet, Epson LQ, FX, GL/2. I just want to be able to print text files, shells, man pages or word processing. Are my options limited?