puoi utilizzare comandi tipo ps e grep? o devi fare tutto con system call del C?