[Tutor] Fwd: script in Raspberry pi python
Kirk Bailey
kbailey at howlermonkey.net
Tue Jul 30 03:50:30 CEST 2013
originally edited on a windows box, then copied over with a usb stick.
I suppose I better open it, copy it to mouse then paste it to a nw file-
or what? Please advise.
On 7/25/2013 3:45 PM, Walter Prins wrote:
>
> Hi,
>
>
>
> On 25 July 2013 19:45, Kirk Bailey <kbailey at howlermonkey.net
> <mailto:kbailey at howlermonkey.net>> wrote:
>
> which python
> /usr/bin/python
> root at KirksPiBox1:/home/pi: ./RR.py
> bash: ./RR.py: /usr/bin/python^M: bad interpreter: No such file or
> directory
> root at KirksPiBox1:home/pi:_
>
>
> Dave's correct. That "^M" represents ctlr-m, and is the displayable
> equivalent of the "Carriage Return" character. Windows text files
> uses CR/LF (Carriage Return, Line Feed) characters to delimit lines of
> text in text files. Unix uses only "Line Feed". So the extra carriage
> return character is taken to be part of the text at the end of the
> shebang line. And "/usr/bin/python" is not the same as
> "/usr/bin/python^M"
>
> Here's some background:
> http://mag-sol.com/articles/crlf.html
>
> How and where did you create the file? If with an editor, which editor?
>
> Walter
>
>
>
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
--
-Shaboom.
Kirk Bailey
CEO, Freehold Marketing LLC
http://www.OneBuckHosting.com/
Fnord!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130729/76df38e6/attachment.html>
More information about the Tutor
mailing list