Re: bash can't run python scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cameron Simpson <cs zip com au> wrote:

I am guessing that it has a windows-style line ending.

So the first #! line isn't:

#!/usr/bin/python^J

but actually:

#!/usr/bin/python^M^J

Thus the kernel's looking for an executable whose name ends in a carraige
return (^M). Naturally it doesn't find it.

You're exactly right.


Works now.

Thanks for the help

sean

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux