#include #include int main(int argc, char** argv) { /* here are the args for ps to display all processes run by user root */ /* by convention the first argument is also the name of the command to be run */ char *const args[4] = {"/bin/ps", "-u", "root", 0}; execve("/bin/ps", args, NULL); fprintf(stderr, "execve failed, or else we wouldn't be here\n"); return 0; }