You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
315 B
21 lines
315 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
|
|
int main(void) {
|
|
|
|
if(system("ps -f") == -1) {
|
|
perror("pb appel systeme");
|
|
exit(errno);
|
|
}
|
|
if(execlp("/bin/ps", "ps", "-f", NULL) == -1) {
|
|
perror("ZUT, pb avec le exec");
|
|
exit(errno);
|
|
}
|
|
|
|
printf("\nTerminé !");
|
|
|
|
exit(0);
|
|
}
|