Forwarding return value of shell script to C/C++ [closed]
I tried to find possible solution on Google, but all I found is explanation on how to return value, but not how to accept it in some programming language, in my case C/C++? Does anybody have idea on how to do this? Some tips?
I’m focussing on Linux, but my answer probably fits for other POSIX systems.
You’ll execute your shell script from a C or C++ program with some of: