Operating System - HP-UX
1827243 Members
2319 Online
109716 Solutions
New Discussion

HP UX Commands in html format

 
Aakash
New Member

HP UX Commands in html format

Hello ,

Is is possible to have HP commands written in HTML format and used that file in any web-browser ??

Thanks,
Life is beautiful without IT.
6 REPLIES 6
John Bolene
Honored Contributor

Re: HP UX Commands in html format

check out

http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/Man2html-2.02/

you have to unpack all the manpages and then convert them to html
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Mark Vollmers
Esteemed Contributor

Re: HP UX Commands in html format

You can make a web page that will call hp commands or scripts (search pages, etc can have them imbedded to run on input). The commands will run on the server, though, although they can be initiated from any broswer. for example, I have a file with x numbers of lines of text. I use an html form to pass an search item (like bob). the item is can be then used in a script to run a grep of the file looking for lines with "bob" in it and pass this line back to the browser. you can probably also set up a form to pass a direct command in a similar fashion, but you'll have to be careful of security.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Steven Sim Kok Leong
Honored Contributor

Re: HP UX Commands in html format

Hi,

Yes, it is possible to have your webserver call a CGI script (can be shell i.e. sh, ksh etc. or perl), execute the commands with privileges of the webserver daemon (HTTPD) usually the user "nobody" and return the output of the command execution back as a html page with the simpliest way using
 tags.

As mentioned, security is a big concern. You will want to restrict the commands and flexibility of options to such commands in your CGI. Careful in the expansion of variables. Also, never ever run your HTTPD as root. Otherwise, you are done for if your webserver gets compromised.

Hope this helps. Regards.

Steven Sim Kok Leong
Jeff Schussele
Honored Contributor

Re: HP UX Commands in html format

Hi Aakash,

I'm sorry, but I've read your question many times & I'm still not sure whether your desire html man pgs or access to HP binaries via html. As well noted the latter is VERY risky & should be implemented with detailed study, clear planning & implementation limited solely to what *needs* to be executed in this manner.
Please clarify.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Guido Schmidt
New Member

Re: HP UX Commands in html format

Hi, Aakash

I think the easiest way is to install
APACHE (B9415AA).

Then you will find all manpages under:

http:///cgi-bin/man2html

regards
Guido
Bill McNAMARA_1
Honored Contributor

Re: HP UX Commands in html format

AS pointed out, the Apache install will do this from YOUR system.

But if you prefer, try docs.hp.com:

http://docs.hp.com/hpux/os/man_pages.html

Later,
Bill
It works for me (tm)