how to get process status
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > how to get process status




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    how to get process status  
Jaguk Ku


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:07 PM

Hi there,

I need to get process status, such as process memory usage, cpu usage in
unix programming

Machine : sun E450, solaris 8
Compiler : gcc

Thanks in advance

Jaguk Ku







[ Post a follow-up to this message ]



    Re: how to get process status  
David Schwartz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:07 PM


"Jaguk Ku" <jkku@kynax.com> wrote in message
news:br130q$45v$1@news1.kornet.net...
quote:
> Hi there, > > I need to get process status, such as process memory usage, cpu usage in > unix programming > > Machine : sun E450, solaris 8 > Compiler : gcc > > Thanks in advance > > Jaguk Ku
The 'ps' program is what you want. DS




[ Post a follow-up to this message ]



    Re: how to get process status  
Jaguk Ku


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:07 PM


"David Schwartz" <davids@webmaster.com> wrote in message
news:br1eni$6hg$1@nntp.webmaster.com...
quote:
> > "Jaguk Ku" <jkku@kynax.com> wrote in message > news:br130q$45v$1@news1.kornet.net... > > The 'ps' program is what you want. > > DS > >
thanks for your reply i need a function for my application rather than shell command




[ Post a follow-up to this message ]



    Re: how to get process status  
David Schwartz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:07 PM


"Jaguk Ku" <jkku@kynax.com> wrote in message
news:br1dj7$cv2$1@news1.kornet.net...
quote:
[QUOTE] > thanks for your reply > i need a function for my application rather than shell command
Then use 'popen' to launch the 'ps' program. Otherwise, get the source code to 'ps' and modify/borrow it. DS




[ Post a follow-up to this message ]



    Re: how to get process status  
Terry Sanders


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 10:07 PM

"David Schwartz" <davids@webmaster.com> wrote in message
news:br1hc2$841$1@nntp.webmaster.com...
quote:
> > "Jaguk Ku" <jkku@kynax.com> wrote in message > news:br1dj7$cv2$1@news1.kornet.net... > > > > Then use 'popen' to launch the 'ps' program. Otherwise, get the source > code to 'ps' and modify/borrow it. >
Have a look in /usr/include/sys/proc.h or get the source for utilities such as top or yamm and see how they do it.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register