args[0] = "./myprog";
args[1] = "filename";
You did actually substitute your real command and filenames here.
Also, check to see if exec() actually returns, which it will do if it can't run the program.
Printable View
args[0] = "./myprog";
args[1] = "filename";
You did actually substitute your real command and filenames here.
Also, check to see if exec() actually returns, which it will do if it can't run the program.