From owner-freebsd-questions Wed Jul 30 17:19:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA15439 for questions-outgoing; Wed, 30 Jul 1997 17:19:10 -0700 (PDT) Received: from fly.HiWAAY.net (root@fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA15393 for ; Wed, 30 Jul 1997 17:18:17 -0700 (PDT) Received: from nexgen.hiwaay.net by fly.HiWAAY.net; (8.8.6/1.1.8.2/21Sep95-1003PM) id SAA19719; Wed, 30 Jul 1997 18:55:24 -0500 (CDT) Received: from nexgen (localhost [127.0.0.1]) by nexgen.hiwaay.net (8.8.6/8.8.4) with ESMTP id SAA13542; Wed, 30 Jul 1997 18:55:22 -0500 (CDT) Message-Id: <199707302355.SAA13542@nexgen.hiwaay.net> X-Mailer: exmh version 2.0zeta 7/24/97 To: Philipp Gruenig cc: freebsd-questions@FreeBSD.ORG From: dkelly@HiWAAY.net Subject: Re: a2ps header always stdin In-reply-to: Message from Philipp Gruenig of "Thu, 31 Jul 1997 01:18:12 +0200." <33DFCBB4.E047B242@tecnosoft.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 30 Jul 1997 18:55:20 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Philipp Gruenig writes: > > Hi > > I've successfully installed the a2ps filter in the printcap file > (:if=...). > Is there a possibility to get the correct name of the printing-file, > wich will the a2ps-filter put in the header? > Now there is always stdin written in the header. I've attempted to cross that bridge before. The "-H" option to a2ps will let you select the text you wish in place of stdin or the filename. But it doesn't appear that the filename itself is available to you in printcap. Of course there is the standard, "You have the source code, fix it..." reply. Its much easier to invoke a2ps from the command line, "a2ps thisfile.c | lpr -Plp" and get exactly what you want rather than imposing a2ps formatting on all user output. Its also easier than setting up separate portrait and landscape printer devices using a2ps. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.