Permission denied when i try to execute a python script from bash? -
this question has reply here:
-bash: ./manage.py: permission denied 2 answersi downloaded python script web , when seek execute bash throws exception:
user:python_script user$ ./python_script.py -n some_parameter -b
the output following:
-bash: ./python_script.py: permission denied
the file ready has: #!/usr/bin/python
@ top of script. how can solve this?
you need add together execute permissions so:
chmod u+x python_script.py
this assumes script owned you. if isn't, might need alter group/other execute permissions or chown
file appropriate.
python bash shell python-2.7
No comments:
Post a Comment