*BSD News Article 37828


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!swiss.ans.net!news.dfn.de!news.belwue.de!delos.stgt.sub.org!nadia.s.bawue.de!luva!migieger
From: migieger@luva.lb.bawue.de (Michael Giegerich)
Subject: Re: lpr: setenv PRINTER=/dev/lpt0 won't work, now what?
Organization: private FreeBSD site
Message-ID: <Cz799A.5JA@luva.lb.bawue.de>
References: <3a3u54$p33@vixen.cso.uiuc.edu>
Date: Sun, 13 Nov 1994 09:34:22 GMT
Lines: 28

In article <3a3u54$p33@vixen.cso.uiuc.edu>,
The Great Cornholio <scallon@ux4.cso.uiuc.edu> wrote:
>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

The correct syntax should be `setenv PRINTER /dev/lpt0' for
csh or `set PRINTER=/dev/lpt0; export PRINTER' for sh.

You should get the same result using `lpr -P/dev/lpt0 foobar'

Anyway I make a symbolic lint from lp to whatever printer
device I use as standard printer:

`cd /dev'
`ln -s lpt0 lp'

This works for me.

-Michael

P.S. read the fine manualpages lpr, lpc, lpd.
-- 
------------------------------+------------------------------
Michael Giegerich             | migieger@luva.lb.bawue.de
------------------------------+------------------------------