🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #10031

Re: What is a2ps -nn | lpr?

#10031
From: Paul Hirose
Date: Wed, 13 Jul 1994 07:44
43 lines
2973 bytes
ppowell@infinet.com (Preston Powell) writes:
>I don't get the meaning of a2ps -nn | lpr -h as the recommended print command in TIN.  Specifically, what is the purpose of 

Chances are there's a man page.  Even if there isn't, a2ps -help will tell
you what you need to know, but just to save you the trouble, let me.

Assuming it's a2ps version 4.0, the "-nn" means do not number the lines when
printing out.  Ie: 1]ldkjfsljf 2]ljfls-kjf and so on.

In case you're wondering a2ps is a program which takes ascii and converts it
into postscript, and makes it all nice before printing.  The "| lpr -h"
means send the output of the a2ps program to the printer, without using
a burst-page.

Strange, since I would think a2ps would be compiled with a printer default,
rather than stdout default - you may want to talk to your sysadmina bout
changing that.  You can always get a2ps to kick out to stdout via
a2ps -nP.  a2ps, by the wa, does "2-up" printing (ie: you get two pages
on physical sheet of paper) - it's very good and very modifiable program.
I use it to dmp out C-code all the time.

However, what I would really suggest is a program called mp - which is a 
"pretty printer".  It can take mail, news-articles, digests, and several
other formats of text-files and then outputs it, all nice and pretty, on
a postscript printer.  We have, as our default (I know - I set it up)
for all our newsreaders, as "mp -a -l | lpr".  Run mp, accept the input
file as a news-article, print it out landscape (2-up printing) and pipe
the output to the printer.  For most of our mail-programs (just th eones
I set up) we have "mp -l | lpr" since by default, mp takes mail-files.

If you do chat with your admin, I'd strongly suggest mp - it's nicer :)
a2ps is best to use with like gopher or lynx, when you want to print
"normal" text file (ie: not any special formatting.)

Both a2ps and mp are available via ftp - check archie for specifics.
If anyone can suggest other, better output-programs, I'd love to hear
from you!

Hope some of the above info helps you - and others too :)
PH
--
  I do not speak for for UC Davis, Academic Computing Services, or anyone else.
  Paul Hirose                                         pthirose@engr.ucdavis.edu
Technical Details
Message-ID: <pthirose.774085481@nachos>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!usc!sdd.hp.com!ihnp4.ucsd.edu!library.ucla.edu!news.ucdavis.edu!nachos!pthirose
References: <2vvroi$at@rigel.infinet.com>

Show Full Headers
Complete Article Headers
Message-ID: <pthirose.774085481@nachos>
Subject: Re: What is a2ps -nn | lpr?
Date: Wed, 13 Jul 1994 07:44:41 GMT
From: pthirose@nachos.engr.ucdavis.edu (Paul Hirose)
References: <2vvroi$at@rigel.infinet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!usc!sdd.hp.com!ihnp4.ucsd.edu!library.ucla.edu!news.ucdavis.edu!nachos!pthirose
Newsgroups: news.software.readers
Sender: usenet@ucdavis.edu (News Guru)
Organization: University of California, Davis
Lines: 43