I only recently started programming. I have a shell script which contains a c-program. At the end of the script, the c-program is ran using the commands
gcc stadist.c -lm
a.out < XXXXX | sort -n -k3 > YYYYY
rm a.out
rm stadist.c
rm XXXXX
Running this script gives a.out: not found. The file YYYYY is created but it is empty. How can i solve this problem. I am on Linux ubuntu 16.04 LTS.
I have a shell script which contains a c-program....ummmm you might need to rephrase that../a.out./a.out- but I hope you have a backup of that source file....