Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 1997 18:55:20 -0500
From:      dkelly@HiWAAY.net
To:        Philipp Gruenig <gruenig@tecnosoft.ch>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: a2ps header always stdin 
Message-ID:  <199707302355.SAA13542@nexgen.hiwaay.net>
In-Reply-To: Message from Philipp Gruenig <gruenig@tecnosoft.ch>  of "Thu, 31 Jul 1997 01:18:12 %2B0200." <33DFCBB4.E047B242@tecnosoft.ch> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707302355.SAA13542>