I would like to ask which function to use to start program with another program. I would like to start a program and when program ends it executes the second program.execvp, execve?
path of the second program is /home/matej/menu/a.out
a.out file i a compiled program so that's whay I would start a.out(only files in folder are .c file of the folder and a.out)
What to write in the mentioned functions, what arguments. I only know defining path and then it ends, could anyone help me the rest?
There is a menu that starts a program and when it ends it should go back to menu. I don't want to use fork function.