Date: Thu, 10 Aug 1995 11:32:05 -0700 From: fadorno@ix.netcom.com (Fred Adorno ) To: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> Cc: questions@FreeBSD.org Subject: Re: Printcap and Laser printer Message-ID: <199508101832.LAA29873@ix2.ix.netcom.com>
next in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508101832.LAA29873>