- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- top command output not runnibg in html page
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
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
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
12-30-2013 01:53 AM
12-30-2013 01:53 AM
top command output not runnibg in html page
- Tags:
- top
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 02:40 AM - edited 12-30-2013 03:53 AM
12-30-2013 02:40 AM - edited 12-30-2013 03:53 AM
Re: top command output not running in html page
In order to get the text formatted top output, you must use the -f option to send it to a file.
echo "<pre> $(top -d 1 -f top-file; cat top-file; rm -f top-file) </pre>
>echo "<pre> $(more disk.txt) </pre>"
You should also replace more(1) by cat or:
echo "<pre> $(< disk.txt) </pre>"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 03:09 AM
12-30-2013 03:09 AM
Re: top command output not running in html page
Hello
when i run my script1 on shell its run
but when i run (or refresh) on html page its not run
my question is that
when i run script1 every single command run properly is on the script1 and its output shown in html page
but top command output not shown in the html page .
This is the html output :----------------------------------------------------------------
General system information for host
Click Me!
Firmware info
Firmware info: Firmware revision: 04.32 FP SWA driver revision: 1.18 IPMI is supported on this system. BMC firmware revision: 5.26
Platform info
Platform info: Model: "ia64 hp server rx3600" Machine ID number: 27220f96-383d-11de-ad39-ef4b35b5d5c9 Machine serial number: SGH4913M52
OS info
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
CPU info
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)
/Memory
Memory: 8161 MB (7.97 GB)
Disk Info:
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
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
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
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.
''
please suggest me how can do this
Thanks
Aamir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 03:22 AM
12-30-2013 03:22 AM
Re: top command output not running in html page
>please suggest me how can do this
I did. Did you try -f top-file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 03:36 AM
12-30-2013 03:36 AM
Re: top command output not running in html page
yes i done that.
see it.
Thanks
aamir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 03:50 AM - edited 12-30-2013 03:52 AM
12-30-2013 03:50 AM - edited 12-30-2013 03:52 AM
Re: top command output not running in html page
>echo "<pre> $(more top-file)</pre>"
No need for that more(1) line, the cat on previous should do it.
What's in top-file? You may need to capture stderr:
echo "<pre> $(top -d 1 -f top-file 2>> top-file; cat top-file) </pre>"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 04:21 AM
12-30-2013 04:21 AM
Re: top command output not running in html page
hello
i already ran on sh shell
but when i refresh html page on browser it shown older entry.
I already run the command on shell
i want to refresh command output on every single click(refresh) in browser.
Thanks
aamir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 12:01 PM
12-30-2013 12:01 PM
Re: top command output not running in html page
>i want to refresh command output on every single click(refresh) in browser.
Are the other (non-top) values changing? Make sure you remove that output file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2013 10:15 PM
12-30-2013 10:15 PM
Re: top command output not running in html page
Hi,
This is my file:-----------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2013 12:52 PM
12-31-2013 12:52 PM
Re: top command output not running in html page
>Please suggest me what is a problem?
What's in top-file? Also "2>" should probably be "2>>".
What happens when you invoke:
top -d 1 -f top-file 2> top-file; cat top-file