Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!uwm.edu!lll-winken.llnl.gov!sol.ctr.columbia.edu!news.kei.com!travelers.mail.cornell.edu!newstand.syr.edu!mailbox.syr.edu!smcarey From: smcarey@mailbox.syr.edu (Shawn Carey) Newsgroups: comp.os.386bsd.questions Subject: Re: lpr: setenv PRINTER=/dev/lpt0 won't work, now what? Date: 13 Nov 1994 04:59:26 GMT Organization: Syracuse University, Syracuse, NY Lines: 33 Message-ID: <3a46fe$864@newstand.syr.edu> References: <3a3u54$p33@vixen.cso.uiuc.edu> NNTP-Posting-Host: sudial-85.syr.edu In article <3a3u54$p33@vixen.cso.uiuc.edu> scallon@ux4.cso.uiuc.edu (The Great Cornholio) writes: >I tried to manipulate the lpr command to print files, but the system will >not recognize setenv PRINTER=/dev/lpt0 (it's on the LPT1 device) nor >recogize the printer when I include it in the printcap files. Could >someone tell me how to get /dev/lpt0 to be an lpr printer? Are there >any books about this? If not, it's back to > >cat <filename> > /dev/lpt0 > The PRINTER variable is meant to specify a printer description from the /etc/printcap database. Here's a simple printcap that I use for my KX-P1180: lp|KX-P1180:\ :lp=/dev/lpt0:sh:sd=/var/spool/lpd:lf=/var/log/lpd-errs: So, if I wanted to I could "setenv PRINTER lp" or "setenv PRINTER KX-P1180". Note that a printer named "lp" in /etc/printcap is the default printer, unless overriden by the PRINTER environment variable. See the printcap(5) manpage for more details. >-- >"Your words, waste in decay >Nothing you say, reaches my ears anyway" -ELP, The Endless Enigma > >Brendan John Francis Scallon Liberal yet politically incorrect >scallon@ux4.cso.uiuc.edu Catholic yet pro-choice -Shawn Carey