From owner-freebsd-questions@FreeBSD.ORG Fri Nov 28 21:13:38 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACA7216A4CE for ; Fri, 28 Nov 2003 21:13:38 -0800 (PST) Received: from motgate3.mot.com (motgate3.mot.com [144.189.100.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C6F143F75 for ; Fri, 28 Nov 2003 21:13:34 -0800 (PST) (envelope-from Charles.S.Libby@motorola.com) Received: from az33exr03.mot.com (pobox3.mot.com [10.64.251.242]) by motgate3.mot.com (Motorola/Motgate3) with ESMTP id hAT5DJKN026812 for ; Fri, 28 Nov 2003 22:13:19 -0700 (MST) Received: from il06exm10.corp.mot.com (il06exm10.corp.mot.com [10.0.111.10]) by az33exr03.mot.com (Motorola/az33exr03) with ESMTP id hAT5DV7j009461 for ; Fri, 28 Nov 2003 23:13:32 -0600 Received: by il06exm10 with Internet Mail Service (5.5.2657.2) id ; Fri, 28 Nov 2003 23:13:31 -0600 Message-ID: <370596D46C9BD711B61A00065BF365888A179D@il06exm12> From: Libby Charles-CCL044 To: "'Malcolm Kay'" , Antoine Jacoutot , Ian Todd Date: Fri, 28 Nov 2003 23:13:30 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.2) Content-Type: text/plain cc: freebsd-questions@freebsd.org Subject: RE: how to print a man page X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2003 05:13:38 -0000 You could just pipe the output of man directly to lpr: man manpage |lpr This produces a great output which I use in my classes all the time. Now if you need it to be put into another document for a class for example, you can just man manpage > filename And the output is formated in text. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Malcolm Kay Sent: Friday, November 28, 2003 11:09 PM To: Antoine Jacoutot; Ian Todd Cc: freebsd-questions@freebsd.org Subject: Re: how to print a man page On Sat, 29 Nov 2003 05:48, Antoine Jacoutot wrote: > On Friday 28 November 2003 20:10, Ian Todd wrote: > > I have installed a local printer on /dev/lp0. I want to print a man > > page how do i do that? Will it also fit onto the page? i dont need > > to setup the size of my page?Thanks. > > $ groff -Tps -man /path/to/man/page/man.1 | lpr -P PS-Printer > This is making hard work of it. You need to first find the path to the man page; but man itself is capable of preparing a PS output: $ man -t manpage | lpr -P PS-Printer Malcolm Kay _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"