<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to embedded Unix command in html in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992980#M718642</link>
    <description>Here is one way for how you can solve your problem. You should get the text2html.awk program and put it into your server (example in /usr/local/bin). This will help you format the output as a valid HTML-file.&lt;BR /&gt;&lt;BR /&gt;1) Generate a WEB page with the process info&lt;BR /&gt;ps -ef | /usr/local/bin/text2html.awk &amp;gt; ./ps-overview.html&lt;BR /&gt;&lt;BR /&gt;2) You code would then be something like this&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;TITLE&gt;TEST in uxadmin &amp;lt;BR /&amp;gt;&lt;/TITLE&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;To see ps -ef&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.hpe.com/ps-overview.html" target="_blank"&gt;[Click here]&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Both your file and the ./ps-overview.html must be located in the same directory.&lt;BR /&gt;&lt;BR /&gt;Some comments:&lt;BR /&gt;To get automatic updates of the prosess status you could f.ex.&lt;BR /&gt;- schedule a cronjob (limit to 1 min. updates) &lt;BR /&gt;- start an endless looping program which runs the command in intervals&lt;BR /&gt;&lt;BR /&gt;If you still doesn't get the picture - I'll recommend a course in HTML coding.&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;You submitted this message in a Forum for "Business Recovery Planning" perhaps you rather should search for assistance in HTML-coding.</description>
    <pubDate>Wed, 11 Jun 2003 08:00:11 GMT</pubDate>
    <dc:creator>Tor-Arne Nostdal</dc:creator>
    <dc:date>2003-06-11T08:00:11Z</dc:date>
    <item>
      <title>how to embedded Unix command in html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992977#M718639</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I try create simple html file to list running&lt;BR /&gt;process put I can see the command ps -ef only&lt;BR /&gt;&lt;BR /&gt;I may doing wrong ....need your Advice.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Ashan&lt;BR /&gt;&lt;BR /&gt;my html file looks like..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;TEST in uxadmin&amp;lt;BR /&amp;gt;&lt;/TITLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps -ef&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jun 2003 06:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992977#M718639</guid>
      <dc:creator>ashan</dc:creator>
      <dc:date>2003-06-10T06:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to embedded Unix command in html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992978#M718640</link>
      <description>A Unix command (or any operating system command) would not directly be processed on the server just by putting it into an HTML-file.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;In your example you are using the command &lt;TITLE&gt; that tells the parser to use the tag-enclosed text as a title for the browser window.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;The text "ps -ef" is enclosed in the &amp;lt;body&amp;gt; tag and treats the text as a text with no specific formatting, and just print it in the browser window.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;You can try to copy your code into Notepad on your PC. Then save the it to a file named C:\TEST.HTML&amp;lt;br /&amp;gt;Start then a browser (ex. Internet Explorer, Netscape or Opera) and instead of a WEB-address (URL) you type in: file://C:\TEST.HTML&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;You will see that you get a window with "TEST in uxadmin" as title, and the page will only contain the text "ps -ef"&amp;lt;/body&amp;gt;&lt;/TITLE&gt;</description>
      <pubDate>Wed, 11 Jun 2003 07:35:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992978#M718640</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2003-06-11T07:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to embedded Unix command in html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992979#M718641</link>
      <description>Html files are static.&lt;BR /&gt;But you can write a small shell script that generate html pages.&lt;BR /&gt;&lt;BR /&gt;In your cgi-bin create the following shell script 'ps.cgi'&lt;BR /&gt; (warning : the empty line after text/html is mandatory):&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;Content-type: text/html &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;TEST in uxadmin&amp;lt;BR /&amp;gt;&lt;/TITLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;ps -ef&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Hope this help.&lt;BR /&gt;--&lt;BR /&gt;Philippe</description>
      <pubDate>Wed, 11 Jun 2003 07:39:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992979#M718641</guid>
      <dc:creator>Philippe MALINGE</dc:creator>
      <dc:date>2003-06-11T07:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to embedded Unix command in html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992980#M718642</link>
      <description>Here is one way for how you can solve your problem. You should get the text2html.awk program and put it into your server (example in /usr/local/bin). This will help you format the output as a valid HTML-file.&lt;BR /&gt;&lt;BR /&gt;1) Generate a WEB page with the process info&lt;BR /&gt;ps -ef | /usr/local/bin/text2html.awk &amp;gt; ./ps-overview.html&lt;BR /&gt;&lt;BR /&gt;2) You code would then be something like this&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;TITLE&gt;TEST in uxadmin &amp;lt;BR /&amp;gt;&lt;/TITLE&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;To see ps -ef&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.hpe.com/ps-overview.html" target="_blank"&gt;[Click here]&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Both your file and the ./ps-overview.html must be located in the same directory.&lt;BR /&gt;&lt;BR /&gt;Some comments:&lt;BR /&gt;To get automatic updates of the prosess status you could f.ex.&lt;BR /&gt;- schedule a cronjob (limit to 1 min. updates) &lt;BR /&gt;- start an endless looping program which runs the command in intervals&lt;BR /&gt;&lt;BR /&gt;If you still doesn't get the picture - I'll recommend a course in HTML coding.&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;You submitted this message in a Forum for "Business Recovery Planning" perhaps you rather should search for assistance in HTML-coding.</description>
      <pubDate>Wed, 11 Jun 2003 08:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992980#M718642</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2003-06-11T08:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to embedded Unix command in html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992981#M718643</link>
      <description>After you have created the CGI file and placed it in your cgi-bin directory, you still must have your initial HTML file, and state like this:&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;TITLE&gt;TEST in uxadmin &amp;lt;BR /&amp;gt;&lt;/TITLE&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;To see ps -ef&lt;BR /&gt; &lt;BR /&gt;&lt;A href="https://community.hpe.com/cgi-bin/ps.cgi" target="_blank"&gt;[Click here]&lt;/A&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;NB! this could be harmful !!!&lt;BR /&gt;If you run prosesses that contains "secret" information in the command line (like username/password) you would not like everyone to see this...&lt;BR /&gt;By enabling anyone connecting to this system with a browser to see all running prosesses - you might reveal to much info.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 08:49:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992981#M718643</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2003-06-11T08:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to embedded Unix command in html</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992982#M718644</link>
      <description>Ha ahsan,&lt;BR /&gt;if your provider, support php you can try to make a dynamic web page.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TITLE&gt;TEST in uxadmin&amp;lt;BR /&amp;gt;&lt;/TITLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.... HTML code here.&lt;BR /&gt;&lt;BR /&gt;Your php code. Is a script code, you can do many things with it, even execute commands from O.S.&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;..... more HTML code.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;For more info check it out:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.php.net" target="_blank"&gt;http://www.php.net&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Mon, 23 Jun 2003 20:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-embedded-unix-command-in-html/m-p/2992982#M718644</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-06-23T20:11:01Z</dc:date>
    </item>
  </channel>
</rss>

