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!
system("myfile.sh"); // myfile.sh should be chmod +x
#include <stdio.h> #include <stdlib.h> // .... system("my_bash_script.sh");