1 2 3 4 5 6 7 8
/* A small wrapper to call ksysguard --showprocesses */ #include <unistd.h> int main() { return execlp( "ksysguard", "ksysguard", "--showprocesses", 0 ); }