[Tutor] problems with the shebang line and linux

Adam adam.jtm30 at gmail.com
Fri Feb 17 00:59:32 CET 2006


On 16/02/06, David Rock <david at graniteweb.com> wrote:
>
> * Adam <adam.jtm30 at gmail.com> [2006-02-16 14:23]:
> > On 16/02/06, Brian van den Broek <broek at cc.umanitoba.ca> wrote:
> >
> > It seems to me that that ^M is your problem although I'm not quite sure
> > where it came from there seems to be an extra character on the end of
> the
> > copied one. Here's a little test I did:
> > <code>
> > #! /bin/py
> > print "What the hell!!"
> > </code>
> > adam at darkstar:~$ ./test.py
> > -bash: ./test.py: /bin/py: bad interpreter: No such file or directory
> > and there doesn't seem to be any weird thing on the end even though that
> > file doesn't exist.
>
> I would verify that /bin/py is the actual location of your python
> interperter. That's a really weird location.


The whole idea was to use a path where  there was nothing just to prove you
don't get the ^M on all errors of that type.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060216/260e7faf/attachment.htm 


More information about the Tutor mailing list