Dogga85 wrote: ↑
Tue Jun 25, 2019 4:36 am
I've tried sudo chmod +x wolpc.sh to make it executable, and ./wolpc.sh , but all i get is 'No such file or directory'. What the heck am i doing wrong? lol
If the file is in a directory specified in your PATH you just type the name of the file to run it, the same as any other command: wolpc.sh
You could also try /home/pi/bin/wolpc.sh
Actually, you say you created a file called "wolpc" and then mention "wolpc.sh". Which is it?
Verify the file is really in there and runnable with ls -l /home/pi/bin
Also, please post the full error message. It will be something like "bash: blah blah blah: No such file or directory". All of it is important to diagnose the issue.
Which editor did you use to create the bash script?