I did a code long ago in C, that I run with a script shell file. The sh-file does the following
make clean
make
./program.c
echo
cat program.dat
echo END
The code in program.c just has a printf('%f %f', A, B). I am doing a new code, mimicking this idea but after running the code, it will not print it into the new file it just prints it on the terminal. Please help.