executable - Python shebang execution permission denied -


this question has answer here:

i have simple script called blah.py looks this:

#!/space/jazz/1/users/gwarner/anaconda/bin python print 'here' 

my which python returns /space/jazz/1/users/gwarner/anaconda/bin/python , ls -l blah.py returns -rwxrwxr-x 1 gwarner gwarner 64 jul 13 14:16 blah.py. username gwarner. however, when try execute script directory lives in using ./blah.py ./blah.py: permission denied. runs correctly when execute using python blah.py. going on?

i think have space in shebang line... try this:

#!/space/jazz/1/users/gwarner/anaconda/bin/python 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -