Re: [newbie] Printing man pages
the space doesn't have anything to do with the problem. verify if you can view the contents of the file: cat col_manpage.ps less col_manpage.ps You should be able to view it. Stephen Kuhn wrote: On Wed, 2003-07-02 at 11:37, L.V.Gandhi wrote: On Tuesday 01 Jul 2003 5:35 am, Stephen Kuhn wrote: | col -b lilo_manpage.ps for [EMAIL PROTECTED] lvgandhi]$ man col| col -b col_manpage.ps [EMAIL PROTECTED] lvgandhi]$ ls -l col_manpage.ps -rw-r--r--1 lvgandhi lvgandhi 2568 Jul 2 07:05 col_manpage.ps but kghostview couldn't open it. Maybe it's because you need a space in between col and the | ? So: man col | col -b col_manpage.ps ?? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com -- --BEGIN GEEK CODE BLOCK-- V3.12 GE/CS/ITGAT d- s: a--? C+()$ UL+++(---$) P+ L+++---$ E W++ N+++(--) o+++ !K w--- !O M-- V-- PS+++ !PE Y-- PGP- t--- 5-- X R(+++) tv-(--)(+) b-(+) DI+++ D+(++)() G--@$ e+++ h*++ r(-)(+) z? --END GEEK CODE BLOCK-- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Printing man pages
On Wednesday 02 Jul 2003 2:37 am, L.V.Gandhi wrote: On Tuesday 01 Jul 2003 5:35 am, Stephen Kuhn wrote: | col -b lilo_manpage.ps for [EMAIL PROTECTED] lvgandhi]$ man col| col -b col_manpage.ps [EMAIL PROTECTED] lvgandhi]$ ls -l col_manpage.ps -rw-r--r--1 lvgandhi lvgandhi 2568 Jul 2 07:05 col_manpage.ps but kghostview couldn't open it. col outputs text, not postscript. % cat col_manpage.ps will display the file. See my previous post for getting man to output postscript directly, without using col. (Sorry I'm late for work.) -- Richard Urwin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Printing man pages
On Tuesday 01 Jul 2003 5:35 am, Stephen Kuhn wrote: | col -b lilo_manpage.ps for [EMAIL PROTECTED] lvgandhi]$ man col| col -b col_manpage.ps [EMAIL PROTECTED] lvgandhi]$ ls -l col_manpage.ps -rw-r--r--1 lvgandhi lvgandhi 2568 Jul 2 07:05 col_manpage.ps but kghostview couldn't open it. -- L.V.Gandhi 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Printing man pages
On Wed, 2003-07-02 at 11:37, L.V.Gandhi wrote: On Tuesday 01 Jul 2003 5:35 am, Stephen Kuhn wrote: | col -b lilo_manpage.ps for [EMAIL PROTECTED] lvgandhi]$ man col| col -b col_manpage.ps [EMAIL PROTECTED] lvgandhi]$ ls -l col_manpage.ps -rw-r--r--1 lvgandhi lvgandhi 2568 Jul 2 07:05 col_manpage.ps but kghostview couldn't open it. Maybe it's because you need a space in between col and the | ? So: man col | col -b col_manpage.ps ?? -- Fri Jul 4 11:00:01 EST 2003 11:00:01 up 2 days, 20 min, 2 users, load average: 0.44, 0.28, 0.21 - |____ |kuhn media australia| | /-oo /| |'-. |http://kma.0catch.com | | .\__/ || | | || | _ / `._ \|_|_.-' |stephen kuhn| | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | - linux user #:267497 linux machine #:194239 * MDK 9.1 RH 7.3 Mandrake Linux Kernel 2.4.21-11mdk Cooker for i586 - * This message was composed on a 100% Microsoft free computer * -BEGIN GEEK CODE BLOCK- Version: 3.12 GIT d-- s:- a+ C UL P+ L+++ E W++ N++ o-- K--- w--- O++ M+ V PS+++ PE Y++ PGP- t+++ 5+++ X+++ R+ tv b+++ DI+++ D++ G++ e+ h r+++ y+++ --END GEEK CODE BLOCK-- I wouldn't marry her with a ten foot pole. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Printing man pages
Thanks Guys, This is new ground to me - I will be trying your suggestions Johan ** - Original Message - From: Richard Urwin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:34 PM Subject: Re: [newbie] Printing man pages On Tuesday 01 Jul 2003 10:38 am, Robin Turner wrote: Stephen Kuhn wrote: On Tue, 2003-07-01 at 06:43, Johan Scheepers wrote: Hi, At the moment I use this command to print man pages... man lilo | col -b | lpr This is fine if it is only one or two pages. I do not seem to be able to redirect it to ordinary file Why - then I may be able to use a editor and be able to print first odd -reverse -then even - this will then use both sides of paper - save a lot off paper and also make my paper files smaller. Thanks Johan Do it like this: man lilo | col -b lilo_manpage.ps Then, you can open a nice postscript viewer/editor and make it all pretty and then print it at leisure! (or save it to view as you desire, or change it into an HTML file for indexing on your system) or try piping it through a2ps, which will format it nicely for you (check out man a2ps - there are tons of formatting options). Erm.. man has an option to output postscript. man -t lilo lilo_manpage.ps ghostview lilo_manpage.ps (man -t complains about a couple of fonts, but it works OK.) That gives you all the nice bold/italic highlighting etc. that you lose with col. -- Richard Urwin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Printing man pages
On Tue, 2003-07-01 at 06:43, Johan Scheepers wrote: Hi, At the moment I use this command to print man pages... man lilo | col -b | lpr This is fine if it is only one or two pages. I do not seem to be able to redirect it to ordinary file Why - then I may be able to use a editor and be able to print first odd -reverse -then even - this will then use both sides of paper - save a lot off paper and also make my paper files smaller. Thanks Johan Do it like this: man lilo | col -b lilo_manpage.ps Then, you can open a nice postscript viewer/editor and make it all pretty and then print it at leisure! (or save it to view as you desire, or change it into an HTML file for indexing on your system) -- Tue Jul 1 10:00:00 EST 2003 10:00:00 up 6 days, 9:46, 3 users, load average: 1.78, 1.89, 1.87 - |____ |kuhn media australia| | /-oo /| |'-. |http://kma.0catch.com | | .\__/ || | | || | _ / `._ \|_|_.-' |stephen kuhn| | | / \__.`=._) (_ | email: [EMAIL PROTECTED] | - linux user #:267497 linux machine #:194239 * MDK 9.1 RH 7.3 Mandrake Linux Kernel 2.4.21-11mdk Cooker for i586 - * This message was composed on a 100% Microsoft free computer * Hey! Unless this is a nude love-in, get the hell off my property! You can't *own* property, man! I can! That's because I'm not a penniless hippie! --Farnsworth hippie Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Printing man pages
Sorry, on my machine as ex.: ESC x man ENTER manual-entry Enter Replace manual-entry by the man page (ex. dump) Eric Denis HAVLIK wrote: I suppose Rials answer is correct, but if all you need is just printing a page or two from time to time, (x)emacs will make you happy 1) start (x)emacs 2) type: ESC-x manual-entry ENTER 3) type the name of the manual entry you want to print 4) use "pretty-print" function to print the buffer. I highly recomend using (x)emacs for reading man pages even if you do not whish to print them - it is much nicer than normal "man" command. cu Denis -- - Dr. Denis Havlikhttp://www.ap.univie.ac.at/users/havlik Mandrakesoft||| e-mail: [EMAIL PROTECTED] Quality Assurance (@ @)(private: [EMAIL PROTECTED]) ---oOO--(_)--OOo- -- FRANCE (Be careful, my English can hurt you)
Re: [newbie] Printing man pages
hmm... Let's see what "man man" says about this... -t Use /usr/bin/groff -Tps -mandoc to format the manual page, passing the output to stdout. The output from /usr/bin/groff -Tps -mandoc may need to be passed through some filter or another before being printed. so... man -t manpage /dev/lp0 or man -t manpage | lpr or perhaps even man -t manpage | /usr/bin/groff -Tps -mandoc /dev/lp0 or man -t manpage | /usr/bin/groff -Tps -mandoc | lpr might do the trick. Are you ready to risk wasting a couple of pages of paper to try? ;-) ps: it looks like crap on screen, and I don't have any clue what it'll give on paper since I'm at home where I'm stuck with a win-printer. So experiment. Also the manpage is pretty unclear about it, and since I can't experiment with it right now I suggest you also take a look at the man-howto (if it exists). I'd do it for you, but not with this piece of cr@!* 14k4 modem. On May 12 Piero wrote: What do you do when you wnat to print a man page? Is there a site where you can find the whole man in a printable format? -- Rial Juanhttp://nighty.ulyssis.org e-mail: [EMAIL PROTECTED] Belgiumtel:(++32) 89/856533 ulyssis system admininstrator http://www.ulyssis.org The little critters in nature; they don't know they're ugly. That's very funny... A fly marying a bumble-bee... Sign the petition at http://www.libranet.com/petition.html Help bring us more Linux Drivers