so i have an array with the following:
array[0][0] = command arg1 arg2 arg3
array[1][0] = command
array[2][0] = command arg1 arg2 arg3 arg4
etc
I want to use execvp to execute each of these lines of commands,
eg.
execvp(array[0],array);
我该如何在while循环内(这样我才能遍历每一行), 使用fork,以便孩子可以完成命令的每一行。 对我来说,将我的论点放在一个数组中, 吵架了吗?