I have to write the c program that executes terminal commands which are in this order :
cd ../../etc
chmod a+x file
cd alice/password
more password
so if I have attack.c then by ./attack, all these should be implemented on the terminal.
I tried using execvp()
but its just not happening.