I want to execute a script from my C++ codes that needs an argument. this argument is the context of a txt file that I need to cat to provide the argument. how can I call this script in C++ with argument ?
here is my code : my_script.sh needs an argument, I want to get the value of this argument by catting my_file.txt. my question is could cat /tmp/my_file.txt
be interpreted from C++ ??
const char * my_array[] = {
"/dir/my_script.sh `cat /tmp/my_file.txt` "
.
.
.
};