- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printing unix man pages
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 06:44 AM
04-10-2006 06:44 AM
can someone help in how can i print unix man pages on a printer.
thanx
sbk
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 06:46 AM
04-10-2006 06:46 AM
Re: Printing unix man pages
One way is:
# man man | col -b | lp -d printername
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 06:53 AM
04-10-2006 06:53 AM
Re: Printing unix man pages
man xxx | lp -dmyprinter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 07:03 AM
04-10-2006 07:03 AM
Re: Printing unix man pages
http://docs.hp.com/en/hpuxman_pages.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 12:11 PM
04-10-2006 12:11 PM
Re: Printing unix man pages
# man xxx > print_file1
# vi print_file1
# lp print_file1
I hope this helps,
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 08:55 PM
04-10-2006 08:55 PM
Re: Printing unix man pages
Thanx
SBK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 08:58 PM
04-10-2006 08:58 PM
Re: Printing unix man pages
example:
file /usr/local/bin/manpr
#! /usr/bin/sh
case $1 in
-d*) lpdest=$1; shift;;
esac
: ${lpdest:=-dmyprinterbydefaultformanpr}
man $* | lp $lpdest -on -o12 -olm10 -otl66
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 09:00 PM
04-10-2006 09:00 PM
Re: Printing unix man pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 10:28 PM
04-10-2006 10:28 PM
Re: Printing unix man pages
Does the printer have a duplex unit attached? Sounds like the system is expecting to print duble-sided, since every even page is missing.
You might try adding the printer to the system again, using the dumb model script and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 04:04 AM
04-11-2006 04:04 AM
Re: Printing unix man pages
- download and install the a2ps program
- use man xxx | a2ps -m --center-title="man xxx"
... gives excellent results on postscript printers and under linux.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 06:02 AM
04-11-2006 06:02 AM
Re: Printing unix man pages
Does it have a jet direct card?
If so, best way is to use HPPI or from the command line:
addqueue -i 9998 -q QUEUENAME -h printerdns.yourdomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 07:37 PM
04-11-2006 07:37 PM
Re: Printing unix man pages
Thanx for the replies, unfortunalely pb not resolved yet. i am using jetadmin and choe the printer driver lj5000 and the real printer i have is lj5000N. i made the printer conf to use pcl language, im still having some paragraphs disappear when i print. I will have to try the a2ps to see if it works, but i wonder why it is not working with pcl, all the command you gave i tried and sill some lines disappear.
thanx
sbk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 09:12 PM
04-11-2006 09:12 PM
Re: Printing unix man pages
If you have installed the apache (bundled with HP-UX) you can see man pages in browser and can be printed:
http://your-macine-name:port/cgi-bin/man2html
example:
http://myserver.mydomain.com:80/cgi-bin/man2html
HTH
Regards
Ganesha Sridhara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2006 09:14 PM
04-11-2006 09:14 PM
Re: Printing unix man pages
man "something" | col -b |ssp|expand > /tmp/something.txt
Check file. Then print it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 12:45 AM
04-12-2006 12:45 AM
Re: Printing unix man pages
thanx all
sbk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 12:53 AM
04-12-2006 12:53 AM
Re: Printing unix man pages
man 5 regexp | col -b | expand | lp -d myprinter
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 01:17 AM
04-12-2006 01:17 AM
Solution10.20
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?locale=en_US&pnameOID=18923&taskId=135&prodTypeId=18972&prodSeriesId=27350〈=en&cc=us
11.xx and higher
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?locale=en_US&pnameOID=18922&taskId=135&prodTypeId=18972&prodSeriesId=27349〈=en&cc=us
And get the latest printer scripts (not really drivers) from:
http://www.hp.com/pond/modelscripts/index2.html
Note that the dumb model script is not useful with HP printers and using the postscript model script requires that the Postscript module be installed. The printer's selftest will tell you if it is present.
However, the printer scripts do not actually process the print jobs. They prepend and postpend codes to contgrol fonts and spacing for plain ASCII files, but without options, the file is printed as-is. You can bypass the printer script by using hpnpf with the -n option to handle end-of-record processing. The man page will show you the technique.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2006 02:18 AM
04-12-2006 02:18 AM
Re: Printing unix man pages
man $*|lp -dprinter -on -otl66 -ol70
Always works for me
Steve Steel