Thread View: news.software.readers
3 messages
3 total messages
Started by Preston Powell
Wed, 13 Jul 1994 04:49
What is a2ps -nn | lpr?
Author: Preston Powell
Date: Wed, 13 Jul 1994 04:49
Date: Wed, 13 Jul 1994 04:49
6 lines
990 bytes
990 bytes
I don't get the meaning of a2ps -nn | lpr -h as the recommended print command in TIN. Specifically, what is the purpose of a2ps -nn? I have compiled a program *vtprint* which prints to the dedicated printer, but can't seem to get it to work with TIN Preston Powell
Re: What is a2ps -nn | lpr?
Author: Paul Hirose
Date: Wed, 13 Jul 1994 07:44
Date: Wed, 13 Jul 1994 07:44
43 lines
2973 bytes
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
Re: What is a2ps -nn | lpr?
Author: Iain Lea
Date: Thu, 14 Jul 1994 08:26
Date: Thu, 14 Jul 1994 08:26
9 lines
1125 bytes
1125 bytes
Preston Powell (ppowell@infinet.com) wrote: : I don't get the meaning of a2ps -nn | lpr -h as the recommended print : command in TIN. Specifically, what is the purpose of a2ps -nn? Option 18 in the options menu (M command) to the required print command. -- iain.lea@erlm.siemens.de +49-9131-7-43402 'Raus aus dem Alltag, rein in die Kiste'
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads