- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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:30 PM
тАО06-09-2003 11:30 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-09-2003 11:39 PM
тАО06-09-2003 11:39 PM
Re: How to embedded Unix command in html
sees it as a plain text.To catch result of any OS (incl. UNIX) you need to use scripting inside the HTML,tag is <script></script>.This is a different issue and many ways to implement.I think Perl /CGI is the best one that goes with UNIX.Search on Google (or whatever) for this.
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 11:39 PM
тАО06-09-2003 11:39 PM
Re: How to embedded Unix command in html
i think your error is that this page is dynamic.
I don't know how to build dynami pages, but you can do the following from unix :
echo "
" > test.html
ps -ef >> test.html
echo "
" >> test.html
You can generate this file every tot secons, scheduling it as a cron job.
Then visualize the test.html
with your preferred html viewer.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 11:40 PM
тАО06-09-2003 11:40 PM
Re: How to embedded Unix command in html
if your server support php, you can do it with php:
# Begin php code
*** Here you insert php code
# End php code
?>
ps -ef
You can find commands to execute external programs here:
http://www.php.net/manual/en/ref.exec.php
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2003 11:43 PM
тАО06-09-2003 11:43 PM
Re: How to embedded Unix command in html
http://www.yolinux.com/TUTORIALS/LinuxTutorialCgiShellScript.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 12:49 AM
тАО06-11-2003 12:49 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