Tell me how in C language to display all processes that run in the background? (In qtdesighner for Linux)

  • What is meant by "background process" and for what OS? - Vladimir Martyanov
  • Linux. But I do not know what is meant by the background process. Written "get all the processes running in the background" - Andrei

1 answer 1

For example, using ps and popen () :

FILE *ps = popen( "/bin/ps [подставить нужные аргументы]", "r" ); /* читаем и парсим вывод ps */