How to run a bash script from C++ program
Bash scripts are very useful and can save a lot of programming time. So how do you start a bash script in a C++ program? Also if you know how to make user become the super-user that would be nice also. Thanks!
Use the system
function.
system("myfile.sh"); // myfile.sh should be chmod +x