I have a
test.c file in my
/home/test directory and another
prog.cc file in
/home/Desktop/prog directory. In my
/home directory i want to write a shell script to compile and run the
c and the
c++ files in both the directories.
I want to RUN and COMPILE the file through the shell script. How can I run an executable present in another directory? What command can I use in the shell script?
I am new to shell programming and I am not able to figure out a way to write the script. Can someone tell me how the shell script has to be written for this?