My students and I are using gcc to compile programs which ask a series of questions then display a result. Right now if we are running a program called "main" for example, we have to open a terminal window then type: ./Programs/main
We would like to be able to distribute these to other students who don't know how to use the terminal, so that they can just double-click on a file.
I have tried to create a .command or .sh file that does this, but they will do "exit;" before the program can get input. I also tried to use Automator, but this also exits before the program can get input.