However, when I tried that on my own script (which is a bit more than a simple print - it has imports, creates an object that it dels at the end, and calls functions in that object),
It doesnt matter the code inside the file to make it executable.
trying to execute it after marking it as executable with chmod gives:
: No such file or directory
What is the exact command you gave? it should be:
- Code: Select all
sudo chmod +x helloworld.py
show the command, directory, directory contents, and any output from your commands.
one file in the same directory.
are you in the same working directory chmod'ing the correct file in the correct diretory?