1) What is the C function to obtain a process id of say smbd and nmbd or any other process using the name of that process?
2) What is the C function to stop a process ID?
3) I do not want to use a C function to call a bash command such as
1) system("killall nmbd")
2) FILE *f;
f = popen("killall nmbd", "r");
Please provide a C code example for question #1 and question # 2.
Start Free Trial