0

I am working on MacOs application. There I would need to get process pid. Is there any way to get that pid starting from bundle id or app name? I am using C/C++ so Objective-c is not an option now Thanks in advance

RuLoViC
  • 825
  • 7
  • 23
  • To be clear: are you trying to get the PID of the app itself, or of some other process? – Caleb Dec 10 '18 at 22:29
  • Other process. To get mine I am aware of getpid function – RuLoViC Dec 10 '18 at 22:31
  • Possible duplicates: [*How to get a list of all running processes on a Mac?*](https://stackoverflow.com/q/3334623/643383) and [*unable to detect application running with another user (via switch user) *](https://stackoverflow.com/q/18820199/643383) – Caleb Dec 10 '18 at 22:40

0 Answers0