0

I'm searching a way to get the current PID of a process having its path.

For example I know that the path firefox is /usr/bin/firefox, I have launched it and I would like to find its PID in C++.

How could I do that ?

4

1 回答 1

1

看一下“pgrep”程序。来源在这里,我想: http: //procps.sourceforge.net/

于 2013-04-28T03:05:54.980 回答