- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Is there any tool that could generate a HPUX f...
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
Discussions
Discussions
Forums
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
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
тАО05-27-2010 10:39 PM
тАО05-27-2010 10:39 PM
Is there any tool that could generate a HPUX formed manpage from a linux formed manpage ?
Additionally, we hope the HPUX formed new manpage can show the same highlight keywords and indents as it works on linux.
Is there any tools for this ?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2010 11:22 PM
тАО05-27-2010 11:22 PM
Re: Is there any tool that could generate a HPUX formed manpage from a linux formed manpage ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 01:07 AM
тАО05-28-2010 01:07 AM
Re: Is there any tool that could generate a HPUX formed manpage from a linux formed manpage ?
I read the posts and I think I've got some basic ideas about manpage format, tools(nroff in linux). But, as a beginner in this area, I'm afraid that I still have few ideas of how to make the transition. For example, I have a scp.1 in redhat linux, and I want to translate it into a format that HPUX man can recognize. Would u please show me some more hints about this? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 02:49 AM
тАО05-28-2010 02:49 AM
Re: Is there any tool that could generate a HPUX formed manpage from a linux formed manpage ?
http://www.linux.com/archive/feed/34212
To summarize: there are two *roff macro sets that might be used in writing man pages. The traditional macro set is tmac.an, and a newer (BSD unix) set is named tmac.doc. There is also a third set which is used for auto-detecting the correct macro set, called tmac.andoc. (Yes, traditionally "tmac" was a name prefix, not a suffix.)
The strange names are related to the macro set selection option of *roff formatters, which is '-m'. So, when selecting the tmac.an macro set, a command like "nroff -man" would be used, and the macros might also be referred to as "-man macros" or "-mdoc macros".
In Linux, the default manpage formatter macro set is tmac.andoc (or rather, its GNU groff equivalent andoc.tmac). So Linux man pages might use both macro sets, as the default macro set will auto-detect the correct one.
On the other hand, HP-UX uses the traditional tmac.an macro set *only*.
The systems that have the BSD tmac.doc macro set will usually also have the traditional tmac.an macro set for compatibility. But the "traditionalist" systems will usually have the tmac.an macro set only.
So, your problem is probably porting the existing tmac.doc format man page to the universally-understood tmac.an format. I could not find any automated tools for that, but the conversion should not be very difficult to do manually. And once the man page is in traditional tmac.an format, it should be usable in both Linux and HP-UX systems as-is, with no further conversion needed.
In HP-UX, "man 5 man" command can be used to view the documentation for the tmac.an macro set.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2010 05:37 PM
тАО05-28-2010 05:37 PM
Re: Is there any tool that could generate a HPUX formed manpage from a linux formed manpage ?
I think I've got the idea this time.