Results 1 to 2 of 2
hi,
I want to execute a command 'lsof | grep filename' in my c program . How can i do it?...
- 09-29-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 3
How to execute a command in .c file
hi,
I want to execute a command 'lsof | grep filename' in my c program . How can i do it?
- 09-29-2008 #2
Simple: int system(const char *command);
Powerful: The GNU C Library - Child ProcessesDebian GNU/Linux -- You know you want it.


Reply With Quote