The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
C Calender Help - Unusual error Octal High Level Programming 3 03-26-2007 03:08 PM
very unusual question about while Terrible Shell Programming and Scripting 3 08-16-2006 02:21 AM
unusual function refrences xbjxbj UNIX for Advanced & Expert Users 1 02-10-2005 12:27 AM
somewhat unusual top output problem ohhmyhead UNIX for Dummies Questions & Answers 4 07-17-2004 10:44 PM
Deleting an unusual file scmay Shell Programming and Scripting 2 06-09-2004 10:01 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2005
xbjxbj xbjxbj is offline
Registered User
  
 

Join Date: Feb 2005
Location: IOWA
Posts: 9
unusual function refrences

I'm wrting a program which needs to get the following information of a sever by calling some lib fuctions or system calls, so can anybody help to tell me those function names or where I can find the description of them ?

CPU usage
Memory usage
Load procs per min
Swap usage
Page I/O
Net I/O
Disk I/O
List of user names


Thanks a lot.
  #2 (permalink)  
Old 02-10-2005
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,670
Try the apropos command with your keywords - i.e.

apropos cpu usage

Code:
www# man apropos 
apropos(1)                                             apropos(1)

NAME
       apropos - search the whatis database for strings

SYNOPSIS
       apropos keyword ...

DESCRIPTION
       apropos  searches a set of database files containing short descriptions of
       system commands for keywords and displays the result on the standard  out-
       put.

SEE ALSO
       whatis(1), man(1).
  #3 (permalink)  
Old 02-10-2005
itsdhana itsdhana is offline
Registered User
  
 

Join Date: Feb 2005
Location: Cyprus
Posts: 1
You may use the "top" command.
  #4 (permalink)  
Old 02-10-2005
xbjxbj xbjxbj is offline
Registered User
  
 

Join Date: Feb 2005
Location: IOWA
Posts: 9
Quote:
Originally Posted by itsdhana
You may use the "top" command.
Thanks.

I've writing a network management system with RPC to monitor the system status of a remote server. That's why I need those functions needed on the server side program.
  #5 (permalink)  
Old 02-10-2005
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,670
The "top command" is not a C programming "function", it is a utility.

In your original post, you asked for a function for a C program you were writing.

How does top, which is a command line utility, help?
  #6 (permalink)  
Old 02-10-2005
xbjxbj xbjxbj is offline
Registered User
  
 

Join Date: Feb 2005
Location: IOWA
Posts: 9
Quote:
Originally Posted by Neo
The "top command" is not a C programming "function", it is a utility.

In your original post, you asked for a function for a C program you were writing.

How does top, which is a command line utility, help?
I know top is command in unix. But my project is to implement such a utility like top with RPC, which could be executed remotely. So on the RPC server side I need those C library functions or UNIX system calls that provide those information. But I don't their name and can't find them. But the professor said they exist and encourage us to find them through any methods. So I ask for the help here.

I'm still trying to find them out .....

Thanks!
Closed Thread

Bookmarks

Tags
linux, linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0