So, in a directory
/home/pi/remoteinfo/temp/code is have a C program called
a.out and a shell file called
Inside the tempstart.sh file is the following:
Now, when I am in
/home/pi/remoteinfo/temp/code I can type
./tempstart.sh and my program will begin execution.
But when I try to run
tempstart.h from anywhere outside its directory I get
line 3: ./a.out: No such file or directory.
What is happening and how can I fix it?
I'm using a Raspberry Pi 3 with the default OS