cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Get process ID
Get process ID
Mar 1, 2010 at 9:53am UTC
qforce
(1)
Hello,
I'm new to C++ programming on Linux. Does anyone know of a method to get the id of a process by name? I know this can be done with a system call to pidof, but I'd like to do this in pure C++. Thanks in advance!
Mar 1, 2010 at 10:33am UTC
kbw
(9488)
If you want to go thru the pain of it, you could look it up in /proc
Topic archived. No new replies allowed.