Results 1 to 2 of 2
Hello,
I'm programing a C gnu/linux program and I need to execute this command:
" find /home/javi/ -name "dmtcp_restart" | grep dmtcp/bin/dmtcp_restart"
when the command has been executed I need ...
- 10-14-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 1
assign path to a variable in C program
Hello,
I'm programing a C gnu/linux program and I need to execute this command:
" find /home/javi/ -name "dmtcp_restart" | grep dmtcp/bin/dmtcp_restart"
when the command has been executed I need to assign the output of the command to a array char variable.
What linux instructions could be used for obtain this??
regards
- 10-14-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
Try the popen C function.


Reply With Quote