I have read through some tutorials on #!/bin/sh programming, but I am looking for something more specific and thought about asking the question here.
I want to be able to read a bash script through a c++ main, this script would allow compilation and execution of another module. Could somebody provide a brief example as to how this might be done?
Here is what I think should work, but it doesn't.
echo "Inside the script"
##I want to pipe to a file in the current dir.
ls | myFile.cpp
while test "$N" != "0"
g++ -c myFile.cpp
g++ -o my myFile.cpp
echo "compile and execution complete"
Thank you for taking the time to reply.