Have as a shebang at the top:
Code: Select all
#! usr/bin/env python
Code: Select all
chmod +x UKweather.py
Code: Select all
andy@T410s ~/scripts/weather $ UKweather.py
UKweather.py: command not found
I've made bash scripts executable in the past and not had problems. What am I doing wrong? Note python is V2.7.6.There was an error creating the child process for this terminal
Failed to execute child process "/home/andy/scripts/weather/UKweather.py" (No such file or directory)
This is a python script for a conky to generate UK weather using UK Met Office data. In testing I've been putting python plus full pathname in the ${exec}, which is what I'll do if I can't make the script executable, but it's frustrating.