sadique wrote:
<snip>
> What I am trying to do is get a process ID of a process by providing
> its process name in my C++ application under Linux and then check the
> priority of the process and depending on the process priority, I want
> to set priority of another process. Both the set priority() and get
> priority() take PID as an argument rather than using process name.
<snip>
Since "ps -C" does essentially what you're wanting, take a look at
the ps source and see how it goes about things.
--
-jdr-
To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be
removed.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/LINUX_Newbies/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/LINUX_Newbies/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/