I have a build shell script that reads as follows,
#!/bin/sh
gcc -o posture.exe main.c posture_algorithm.cThen I run the following command to set permission,
chmod 755 posture_algo.ofollowed by,
./posture_algorithm.oI get the following error,
-bash: ./posture_algo.o: cannot execute binary file: Exec format error 1 Answer
posture_algo.o is a file containing object code. The executable your script creates is posture.exe, so you should be running:
chmod +x posture.exe
./posture.exe