1753546 Members
5908 Online
108795 Solutions
New Discussion юеВ

print man page

 
sandeep_4
New Member

print man page

How to print "man"(help) pages in Hp-UX. In normal lp command it can not print special characters.

I think i knew this but just can not rememer it now.
4 REPLIES 4
Sachin Patel
Honored Contributor

Re: print man page

Hi Sandeep
man lp |lp -dprintername
or
man lp > test
cat test |lp -d printername

Both are same thing.
It always works for me.

Sachin
Is photography a hobby or another way to spend $
James R. Ferguson
Acclaimed Contributor

Re: print man page

Hi:

Do this:

# man command | col -b | lp -d lpdest

...JRF...
Douglas R. Taylor
Occasional Advisor

Re: print man page

This is what I have used in the past and it has the added advantage that with the man page in a file it is easily reprinted.

man hpnpf | col -b | expand > /home/hpnpf.txt

Then print the page to any printer you would like. To print correctly on the page, you must use the ?oln66 option. This tells the printer that there are 66 lines per page. This may not work on all printers.

lp -dgo_icerpt1 -oln66 /home/hpnpf.txt
Stefan Schulz
Honored Contributor

Re: print man page

Hi,

normally i would use the col -b command as James and Douglas mentioned.

But if you are using HP Laserjets with JetAdmin installed, there is another option. You can use:

man command | lp -dprintername -onroff

This will print the nroff formated page directly. Also the highlighted text will be printed in bold letters.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.