<?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: top command output not running in html page in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6329827#M496396</link>
    <description>&lt;P&gt;Are you sure the cgi bin as access right on current dir? try to put the file on /tmp&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(top -s 1 -d 1 -f /tmp/top-file_$$ &amp;gt;/tmp/top-fileout$$ 2&amp;gt;&amp;amp;1; cat /tmp/top-file_$$ ; rm -f /tmp/top-fileout$$&amp;nbsp; /tmp/top-file_$$ ) &amp;lt;/pre&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Are you sure your web server don't timeout?&lt;/P&gt;&lt;P&gt;may be try&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(top -s 1 -d 1 -f /tmp/top-file_$$ &amp;gt;/tmp/top-fileout$$ 2&amp;gt;&amp;amp;1; cat /tmp/top-file_$$ ; rm -f /tmp/top-fileout$$&amp;nbsp; /tmp/top-file_$$ ) &amp;lt;/pre&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2014 18:09:16 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2014-01-09T18:09:16Z</dc:date>
    <item>
      <title>top command output not runnibg in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317893#M496386</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to run top command in html page&lt;/DIV&gt;&lt;DIV&gt;and i created script all command run in html page but&lt;/DIV&gt;&lt;DIV&gt;top command and sasmgr not running&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is my script:-----------------&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#!/usr/bin/sh&lt;/DIV&gt;&lt;DIV&gt;echo "Content-type: text/html"&lt;/DIV&gt;&lt;DIV&gt;echo ""&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Bash as CGI"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;h1&amp;gt;General system information for host $(hostname -s)&amp;lt;/h1&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;form action="/cgi-bin/top"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;lt;p style="margin: 2em 20%;"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="submit" value="DATE" &amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;lt;/p&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;lt;/form&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;button type="button" onclick="/cgi-bin/top"&amp;gt;Click Me!&amp;lt;/button&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;h1&amp;gt;Memory Info&amp;lt;/h1&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(machinfo) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;h1&amp;gt;Disk Info:&amp;lt;/h1&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(bdf) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;print "`top -d 1 &amp;gt; top4.txt`\n";&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(more top4.txt)&amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(tail -1000000 /var/adm/syslog/syslog.log |grep error) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(tail -1000000 /var/adm/syslog/syslog.log |grep Warning) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(tail -1000000 /var/adm/syslog/syslog.log |grep CRITICAL) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(tail -1000000 /var/adm/syslog/syslog.log |grep MAJOR) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(tail -1000000 /var/adm/syslog/syslog.log |grep failed) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(tail -1000000 /var/adm/syslog/syslog.log |grep NOTICE) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(sasmgr get_info -D /dev/sasd0 -q raid |grep /dev/rdsk |awk '{print $5}') &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; '$(sasmgr get_info -D /dev/sasd0 -q raid |grep /dev/rdsk |awk '{print $5}')' &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(sasmgr get_info -D /dev/sasd0 -q raid &amp;gt; disk.txt) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(more &amp;nbsp;disk.txt) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(top -d 1) &amp;lt;/pre&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;#sasmgr get_info -D /dev/sasd0 -q raid | sleep 2&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $( sasmgr get_info -D /dev/sasd0 -q raid ) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;center&amp;gt;Information generated on $(date)&amp;lt;/center&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can we run top and sasmgr command on html page&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;aamir&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Dec 2013 09:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317893#M496386</guid>
      <dc:creator>Aamir14</dc:creator>
      <dc:date>2013-12-30T09:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317939#M496387</link>
      <description>&lt;P&gt;In order to get the text formatted top output, you must use the -f option to send it to a file.&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(top -d 1 -f top-file; cat top-file; rm -f top-file) &amp;lt;/pre&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;gt;print "`top -d 1 &amp;gt; top4.txt`\n";&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;echo "&amp;lt;pre&amp;gt; $(more top4.txt)&amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You would need -f here too.&amp;nbsp; And not use more(1).&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;echo "&amp;lt;pre&amp;gt; $(more &amp;nbsp;disk.txt) &amp;lt;/pre&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should also replace more(1) by cat or:&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(&amp;lt;&amp;nbsp; disk.txt) &amp;lt;/pre&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:53:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317939#M496387</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-12-30T11:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317975#M496388</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i run my script1 on shell its run&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i run (or refresh) on html page its not run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is that&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i run script1 every single command &amp;nbsp;run properly is on the script1 and its output shown in html page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but top command output not shown in the html page &amp;nbsp;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the html output :----------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;General system information for host&lt;/P&gt;&lt;P&gt;Click Me!&lt;/P&gt;&lt;P&gt;Firmware info&lt;/P&gt;&lt;PRE&gt; Firmware info:
   Firmware revision:  04.32
   FP SWA driver revision: 1.18
   IPMI is supported on this system.
   BMC firmware revision: 5.26 &lt;/PRE&gt;&lt;P&gt;Platform info&lt;/P&gt;&lt;PRE&gt; Platform info:
   Model:                  "ia64 hp server rx3600"
   Machine ID number:      27220f96-383d-11de-ad39-ef4b35b5d5c9
   Machine serial number:  SGH4913M52 &lt;/PRE&gt;&lt;P&gt;OS info&lt;/P&gt;&lt;PRE&gt; OS info:
   Nodename:  billdev1
   Release:   HP-UX B.11.31
   Version:   U (unlimited-user license)
   Machine:   ia64
   ID Number: 0656543638
   vmunix _release_version:               
@(#) $Revision: vmunix:    B.11.31_LR FLAVOR=perf  &lt;/PRE&gt;&lt;P&gt;CPU info&lt;/P&gt;&lt;PRE&gt; CPU info:
  1 Intel(R) Itanium 2 9100 series processor (1.67 GHz, 18 MB)
          666 MT/s bus, CPU version A1
          2 logical processors (2 per socket) &lt;/PRE&gt;&lt;P&gt;/Memory&lt;/P&gt;&lt;PRE&gt; Memory: 8161 MB (7.97 GB) &lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Disk Info:&lt;/P&gt;&lt;PRE&gt; Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    2097152  274320 1808688   13% /
/dev/vg00/lvol1    3145728  312248 2811432   10% /stand
/dev/vg00/lvol8    25690112 2189912 23316688    9% /var
/dev/vg00/lvol7    5210112 3261024 1933920   63% /usr
/dev/vg00/lvol6    3145728  669744 2456784   21% /tmp
/dev/vg00/lvol5    10485760 6616760 3838784   63% /opt
/dev/vg00/lvol4    1048576   52424  988496    5% /home
appsdev2:/backupserver/appsdev1
                   235929600 131457725 98131283   57% /share &lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt; Nov 22 00:30:13 billdev1 sshd[15224]: error: PAM: Authentication failed for root from 192.168.29.9
Dec  4 13:32:48 billdev1 sshd[5885]: error: PAM: Authentication failed for root from 192.168.10.60
Dec  4 13:32:54 billdev1 sshd[5885]: error: PAM: Authentication failed for root from 192.168.10.60
Dec  5 17:03:40 billdev1 sshd[18427]: error: setsockopt SO_KEEPALIVE: Invalid argument &lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt; Nov 22 00:30:13 billdev1 sshd[15224]: error: PAM: Authentication failed for root from 192.168.29.9
Dec  4 13:32:48 billdev1 sshd[5885]: error: PAM: Authentication failed for root from 192.168.10.60
Dec  4 13:32:54 billdev1 sshd[5885]: error: PAM: Authentication failed for root from 192.168.10.60 &lt;/PRE&gt;&lt;PRE&gt; Nov 10 15:30:16 billdev1 vmunix: NOTICE: nfs_client_pv3_install(): nfs3 File system was registered at index 10.
Nov 10 15:30:16 billdev1 vmunix: NOTICE: nfs_client_pv4_install(): nfs4 File system was registered at index 11.
Nov 10 15:30:16 billdev1 vmunix: NOTICE: cachefsc_install: cachefs File system was registered at index 13. &lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt; '' &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please suggest me how can do this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aamir&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:09:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317975#M496388</guid>
      <dc:creator>Aamir14</dc:creator>
      <dc:date>2013-12-30T11:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317995#M496389</link>
      <description>&lt;P&gt;&amp;gt;please suggest me how can do this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did.&amp;nbsp; Did you try -f top-file?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6317995#M496389</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-12-30T11:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318053#M496390</link>
      <description>&lt;P&gt;yes i done that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;see it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(top -d 1 -f top-file; &amp;lt; top-file) &amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;pre&amp;gt; $(more top-file)&amp;lt;/pre&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;but cant run on html page.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aamir&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318053#M496390</guid>
      <dc:creator>Aamir14</dc:creator>
      <dc:date>2013-12-30T11:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318107#M496391</link>
      <description>&lt;P&gt;&amp;gt;echo "&amp;lt;pre&amp;gt; $(more top-file)&amp;lt;/pre&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need for that more(1) line, the cat on previous should do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's in top-file?&amp;nbsp; You may need to capture stderr:&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(top -d 1 -f top-file 2&amp;gt;&amp;gt; top-file; cat top-file) &amp;lt;/pre&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318107#M496391</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-12-30T11:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318171#M496392</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i already ran on sh shell&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i refresh html page on browser it shown older entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already run the command on shell&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to &amp;nbsp;refresh command output on every single click(refresh) in browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;aamir&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 12:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318171#M496392</guid>
      <dc:creator>Aamir14</dc:creator>
      <dc:date>2013-12-30T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318535#M496393</link>
      <description>&lt;P&gt;&amp;gt;i want to &amp;nbsp;refresh command output on every single click(refresh) in browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are the other (non-top) values changing?&amp;nbsp; Make sure you remove that output file.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 20:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6318535#M496393</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-12-30T20:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6319055#M496394</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my file:-----------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;#!/usr/bin/sh&lt;/DIV&gt;&lt;DIV&gt;echo "Content-type: text/html"&lt;/DIV&gt;&lt;DIV&gt;echo ""&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;Bash as CGI"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;h1&amp;gt;General system information for host $(hostname -s)&amp;lt;/h1&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;echo "&amp;lt;pre&amp;gt; $(top -d 1 -f top-file 2&amp;gt; top-file; cat top-file) &amp;lt;/pre&amp;gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;center&amp;gt;Information generated on $(date)&amp;lt;/center&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;echo "&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;and this is my html output:--&lt;STRONG&gt;---------------------------&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;----------------------------------------------------------------------------------&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;General system information for host&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;CENTER&gt;Information generated on Tue Dec 31 11:45:53 IST 2013&lt;/CENTER&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please suggest me what is a problem ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;aamir&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Dec 2013 06:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6319055#M496394</guid>
      <dc:creator>Aamir14</dc:creator>
      <dc:date>2013-12-31T06:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6319643#M496395</link>
      <description>&lt;P&gt;&amp;gt;Please suggest me what is a problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's in top-file?&amp;nbsp; Also "&lt;SPAN&gt;2&amp;gt;&lt;/SPAN&gt;" should probably be "&lt;SPAN&gt;2&amp;gt;&lt;/SPAN&gt;&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens when you invoke:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;top -d 1 -f top-file 2&amp;gt; top-file; cat top-file&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 20:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6319643#M496395</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-12-31T20:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: top command output not running in html page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6329827#M496396</link>
      <description>&lt;P&gt;Are you sure the cgi bin as access right on current dir? try to put the file on /tmp&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(top -s 1 -d 1 -f /tmp/top-file_$$ &amp;gt;/tmp/top-fileout$$ 2&amp;gt;&amp;amp;1; cat /tmp/top-file_$$ ; rm -f /tmp/top-fileout$$&amp;nbsp; /tmp/top-file_$$ ) &amp;lt;/pre&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Are you sure your web server don't timeout?&lt;/P&gt;&lt;P&gt;may be try&lt;/P&gt;&lt;P&gt;echo "&amp;lt;pre&amp;gt; $(top -s 1 -d 1 -f /tmp/top-file_$$ &amp;gt;/tmp/top-fileout$$ 2&amp;gt;&amp;amp;1; cat /tmp/top-file_$$ ; rm -f /tmp/top-fileout$$&amp;nbsp; /tmp/top-file_$$ ) &amp;lt;/pre&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 18:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/top-command-output-not-runnibg-in-html-page/m-p/6329827#M496396</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2014-01-09T18:09:16Z</dc:date>
    </item>
  </channel>
</rss>

