I want to make a small application that runs another application multiple times for different input parameters.
- Is this already done?
- Is it wrong to use
system("myAp param"), for each call (of course with differentparamvalue)?
I am using kdevelop on Linux-Ubuntu.
From your comments, I understand that instead of:
system("path/to/just_testing p1 p2");
I shall use:
execl("path/to/just_testing", "path/to/just_testing", "p1", "p2", (char *) 0);
Is it true? You are saying that execl is safer than system and it is better to use?
xargsis for.forkandexec, butsystemworks just as well.