ch3-system

Chapter_3     pid fork







system.c     ALP, p. 52


#include <stdlib.h> // for system()

int main()
{
system("ls -l");

return 0;
}
/*
gcc system.c -o system
./system
total 24
-rwxrwxr-x 1 user user 16696 Sep 15 20:16 system
-rw-rw-r-- 1 user user 125 Sep 15 20:16 system.c
*/









Chapter_3     pid BACK_TO_TOP fork



Comments

Popular posts from this blog

Contents