source:
liacs/os/assignment1/execUse.c
Last change on this file was 2, checked in by , 15 years ago | |
---|---|
File size: 226 bytes |
Line | |
---|---|
1 | /* file name: execUse.c */ |
2 | #include <unistd.h> |
3 | int main () { |
4 | char * a[3]; |
5 | a[0] = "dont care what you put here\0"; |
6 | a[1] ="--all"; |
7 | a[2] = "--time"; |
8 | a[3] = 0; |
9 | execve("/usr/bin/who", a, 0); |
10 | return 1; |
11 | } |
Note:
See TracBrowser
for help on using the repository browser.