I am going mad trying to figure this out. I have a python script that runs fine if I start it like this
Code:
python /home/shane/bin/gettorrent
but if I run it directly like this
Code:
/home/shane/bin/gettorrent
I get the following error
Code:
shane@mainbox ~ $ /home/shane/bin/gettorrent
: No such file or directory
the file is exectuable
Code:
shane@mainbox ~ $ ls -l /home/shane/bin/gettorrent
-rwxr-xr-x 1 shane users 6556 Jan 9 21:35 /home/shane/bin/gettorrent
and it starts with this
Code:
shane@mainbox ~ $ cat /home/shane/bin/gettorrent
#!/usr/bin/env python
#
# gettorrent-5b
#
import urllib, urllib2, cPickle, os, sys
I am sure I am doing something really dumb, but can't seem to see it.