- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to embedded Unix command in html
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
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
тАО06-09-2003 11:28 PM
тАО06-09-2003 11:28 PM
how to embedded Unix command in html
I try create simple html file to list running
process put I can see the command ps -ef only
I may doing wrong ....need your Advice.
Regards
Ashan
my html file looks like..
ps -ef
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 12:35 AM
тАО06-11-2003 12:35 AM
Re: how to embedded Unix command in html
The HTML-code is just a flat file stored on your server, and this file is interpreted by your parser/browser. A command in the HTML-file would therefore be tried runned on your client, not on the server.
HTML="HyperText Markup Language" is using tags to specify "commands" to the parser. There is limited commands available and most of them is related to layout for presenting text.
In your example you are using the command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 12:39 AM
тАО06-11-2003 12:39 AM
Re: how to embedded Unix command in html
But you can write a small shell script that generate html pages.
In your cgi-bin create the following shell script 'ps.cgi'
(warning : the empty line after text/html is mandatory):
#!/bin/sh
cat <
EOF
ps -ef
cat <
EOF
Hope this help.
--
Philippe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 01:00 AM
тАО06-11-2003 01:00 AM
Re: how to embedded Unix command in html
1) Generate a WEB page with the process info
ps -ef | /usr/local/bin/text2html.awk > ./ps-overview.html
2) You code would then be something like this
To see ps -ef
[Click here]
Both your file and the ./ps-overview.html must be located in the same directory.
Some comments:
To get automatic updates of the prosess status you could f.ex.
- schedule a cronjob (limit to 1 min. updates)
- start an endless looping program which runs the command in intervals
If you still doesn't get the picture - I'll recommend a course in HTML coding.
P.S.
You submitted this message in a Forum for "Business Recovery Planning" perhaps you rather should search for assistance in HTML-coding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 01:49 AM
тАО06-11-2003 01:49 AM
Re: how to embedded Unix command in html
To see ps -ef
[Click here]
NB! this could be harmful !!!
If you run prosesses that contains "secret" information in the command line (like username/password) you would not like everyone to see this...
By enabling anyone connecting to this system with a browser to see all running prosesses - you might reveal to much info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2003 01:11 PM
тАО06-23-2003 01:11 PM
Re: how to embedded Unix command in html
if your provider, support php you can try to make a dynamic web page.
.... HTML code here.
Your php code. Is a script code, you can do many things with it, even execute commands from O.S.
?>
..... more HTML code.
For more info check it out:
http://www.php.net
Frank.