Sorry. I was in a hurry when I made this thread. I wanted to have a binary program which would be started by a shell script and would pass information back to the running shell script. The shell script may also have to pass information to the binary.
I've just started using Linux, but have been programming for Windows and DOS for a long time.
This is how a simliar script may look like:
while [ $SOMEVAR -eq 0 ]
The binary would set the value of $SOMEVAR to something other than 0 when it had finished, the shell script would then break out of the loop and display 'Complete!' on the terminal.
I've just read about the 'getenv' and 'putenv' C functions. Would what I described work if I used 'putenv' (in the binary) to set $SOMEVAR to not equal zero?