I have a C program which is returning an integer from main, and based on that integer I then need to decide which awk script to run. Is there a way for me to capture the integer returned by main?
I am trying to do things like this in my 'controlling' shell script
set choice = ./myProgram
but when I do this, myProgram does not run...
Can anyone help?