- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- C Compiler program (memdetail)
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
тАО07-07-2009 06:20 AM
тАО07-07-2009 06:20 AM
i have read one thread with the following notes :-
---------------------------------
And here's a little program I use called memdetail. It is a c program - compiles with the built in HP-UX compiler.
cc memdetail1.c
mv a.out /usr/local/bin/memdetail
Output like:
# memdetail
Memory Stat total used avail %used
physical 40958.0 28445.2 12512.8 69%
active virtual 30213.0 8304.0 21909.1 27%
active real 19827.2 6694.1 13133.0 34%
memory swap 40958.0 15385.0 25573.0 38%
device swap 83964.0 31218.8 52745.2 37%
Rgds...Geoff
-----------------------------
I downloaded this memdetail program and made a file named memdetail.sh in my server. But when i execute this program with
# sh memdetail.sh
it gives a hell of errors. Please tell me how can i execute this C program in my HP-UX box. I am attaching that program with it for your reference.
Thanks
Ranju
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:25 AM
тАО07-07-2009 06:25 AM
Re: C Compiler program (memdetail)
Need to see the errors.
perhaps use tusc and record process detail as well (equivalent of strace in Linux)
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:32 AM
тАО07-07-2009 06:32 AM
Re: C Compiler program (memdetail)
$ sh memdetail.sh
memdetail.sh: /1: Execute permission denied.
memdetail.sh[2]: DiSK_OUT: Execute permission denied.
memdetail.sh[3]: DiSK_OUT: Execute permission denied.
memdetail.sh[4]: 11.00: not found.
memdetail.sh[5]: Syntax error at line 6 : `newline or ;' is not expected.
$ memdetail.sh[4]: DiSK_OUT: Execute permission denied.
after this, i interrupted it with ctrl+C. But i think, where in C, we use # to include functions, it may be taken as a comment in shell execution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:41 AM
тАО07-07-2009 06:41 AM
Re: C Compiler program (memdetail)
it worked out with cc. Full points to you.
thanks everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:41 AM
тАО07-07-2009 06:41 AM