From owner-freebsd-questions Mon Jun 18 3: 7:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id C2FD137B401 for ; Mon, 18 Jun 2001 03:07:34 -0700 (PDT) (envelope-from pjklist@ekahuna.com) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com for ; Mon, 18 Jun 2001 03:07:35 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Mon, 18 Jun 2001 03:07:34 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: RE: Better printing from the command-line Reply-To: pjklist@ekahuna.com Message-ID: <3B2D7076.26736.2677CFE@localhost> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Sun, 17 Jun 2001 15:14:42 -0700 > From: "Ted Mittelstaedt" > > Phil wrote: > >I can't really set the printer a certain way because it depends on > >the job, and because I have over half a dozen machines here that > >print to that printer from various OS's. > > > > A quick and easy way is to define multiple printcap entries that set the > printer to do what you want. > > For example, suppose that "lp" is connected to the HP. Add definitions > for "lp-raw" (unadulterated) or "lp-land" (landscape) or "lp-132" for > 132-column printing, etc. etc. When each definition is selected by > the program (usually lp -P lp-raw or some such) the associated filter > adds in the commands to switch on the special features before the job > prints and trails them with the code to switch the printer back to > normal mode. Good point. I already created one definition for text and one for raw/postscript. Actually I did that prior to setting one up for Magicfilter because it's supposed to deal with both, so actually I have 3 printer devices defined in printcap. Good idea though, that may just meet my simplicity requirements. Thx, Phil -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message