I am using the getpid and get the pid of current process. Now I am try to get the pid of other process using process name. How to get the other process pid?
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main(void)
{
printf("My pid:%d\n", getpid());
return 0;
}