I want to get return value from my script using c code. Consider my script is in another partition, I am mounting that partition and i am calling like,
value=system("./mnt1/myscript.img");
I need one function in myscript.img file and that should return one value (ex: mmcpart) How can i frame the script to get return value. can anyone help me to solve this issue. Thanks in advance.