By fintanr on Oct 04, 2005
Very quick one. a2ps and friends are bundled in /usr/sfw/bin in Solaris 10, and it is an incredibly handy command for printing documentation. I was espousing its virtues to one of my non blogging heathen (to borrow a phrase from Mr. Clingan) colleagues who tends to print out a lot of things yesterday. Anyway the easiest way to use it, say for printing out a pdf document with say four pages per page is to just set your PRINTER environment variable, and run, so we get something like
[fintanr@tiresias bin] $ export PRINTER=myprinter [fintanr@tiresias bin] $ a2ps -4 /tmp/819-2660.pdfYou can of course setup your printers.conf file or your .printers file in your home directory to set your default printer, but I'll leave that as an exercise for the reader.