The UNIX and Linux Forums  


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
[PERL] Running unix commands within Perl Scripts userix Shell Programming and Scripting 1 05-28-2008 07:06 PM
Running a queued set of commands? jjinno Shell Programming and Scripting 1 04-25-2008 04:27 AM
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 06:24 AM
Error while running rsh commands !!! csaha Shell Programming and Scripting 3 11-08-2006 01:47 AM
Problem running plsql & unix commands in 1 script siog UNIX for Dummies Questions & Answers 5 10-05-2006 11:46 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 04-07-2008
zainab zainab is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 9
Smile Running UNIX Commands from C

Hi,

-How can I get number of files, cpu usage (percentage), memory usage, disk usage, ...etc, using C program ... I can use unix command ( system(command) )but I want the value to be returned back to my C program to use it in my code? How can I do that?

Thanks in advance ...
  #2 (permalink)  
Old 04-08-2008
sad_angle's Avatar
sad_angle sad_angle is offline
Registered User
  
 

Join Date: Jun 2001
Location: Madison, WI
Posts: 75
Try this thread

how to get list of processes

Good luck
  #3 (permalink)  
Old 04-15-2008
zainab zainab is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 9
Thumbs up thank you

I use popen() function and it works ...
Thank you soo much ...
Closed Thread

Bookmarks

Tags
unix 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 05:15 PM.


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