From owner-freebsd-questions Sun Sep 20 07:46:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA04185 for freebsd-questions-outgoing; Sun, 20 Sep 1998 07:46:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA04179 for ; Sun, 20 Sep 1998 07:46:13 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id KAA10071; Sun, 20 Sep 1998 10:45:31 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id KAA11077; Sun, 20 Sep 1998 10:45:31 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id KAA25223; Sun, 20 Sep 1998 10:45:31 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Sun, 20 Sep 1998 10:45:30 -0400 (EDT) From: BEAUPRE Antoine To: Francisco Reyes cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to print plain ASCII file In-Reply-To: <199809191747.NAA16197@federation.addy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 19 Sep 1998, Francisco Reyes wrote: > Is there a tutorial/source for printing simple ASCII files. If it's really a plain ascii file, you will like: cat (filname) | /dev/lpt0 or your printer's device. To check where's your printer, you might first like to know that: port LP1 in dos = /dev/lpt0 in FreeBSD port LP2 in dos = /dev/lpt1 ... ... > I read the handbook and the "simple setup" seems nothing, but simple. > First of all it seems to assume nothing is setup. Aren't there some > defaults already setup by the installation? Well there's a printer spooler, enable printer sharing between as much users as you like. It's not so complicated to set up (as it is not by default...) I guess that you have to learn, my friend. > I am willing to put all the answers on a tutorial. Good idea, I might as well do the same for my trials/mistakes... > I also looked at man lpr. It seemed to imply about a variable (I think > PRINTER) with the name of the printer. My PRINTER variable is blank. Don't know about that. What I know is that lpr knows bout a "default" printer defined in the config. > Is there a parameter I should send to lpr? -P Yes there is. If you don't want to print to your default printer. It's: lpr -P . My printcap file looks like this: raven|lp|matrix|Raven PR-9101 multi-mode printer:\ :lp=/dev/lpt0:\ :sd=/var/spool/lpd/raven/:\ :if=/usr/local/libexec/if-raven:\ :lf=/var/log/lpd-errs:\ :sh: Here the printer's name is raven or lp or matrix or ... Anyway, read the doc, it was clear enough for me, i it's not for you, wait awhile, I will make a tutarial on my webpage soon. :) +-----------------------------------+ | Free the world from businessmen | | Free yourself from your money | +-----------------------------------+ Free the web. Spidey visit: http://www.JSP.UMontreal.CA/~beaupran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message