Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Forwarding return value of shell script to C/C++ [closed] without wasting too much if your time.
The question is published on by Tutorial Guruji team.
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: