Are you by chance editing the file in Windows? Have you verified that python is in /usr/bin? In some cases it could be in a different location.<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 1:21 PM, Jason Willis <span dir="ltr">&lt;<a href="mailto:chaoticslacker@gmail.com">chaoticslacker@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi everyone, <br><br>sorry for the rather boring question but i&#39;m having serious issues getting my programs to run from the command line without having to type &quot;python&quot; in-front of them. I&#39;ve tried a lot of different variations on the #!/usr/bin/ etc. line and have come up with the following every time:<br>

<br><strong><span style="font-weight:normal">[root@localhost moonshinerat]# mycode.py</span><br style="font-weight:normal"><span style="font-weight:normal">
bash: mycode.py: command not found</span><br style="font-weight:normal"><span style="font-weight:normal">
[root@localhost moonshinerat]# mycode</span><br style="font-weight:normal"><span style="font-weight:normal">
bash: mycode: command not found</span><br style="font-weight:normal"><span style="font-weight:normal">
[root@localhost moonshinerat]#</span><br><br><span style="font-weight:normal">I&#39;ve chmod&#39;ed the program and everything but i still get command not found from the shell. The only thing that does work is ./mycode.py but from what i understand that&#39;s been built into linux itself to work that way... <br>

<br>please someone let me know what i&#39;m doing wrong here and possibly help?? <br><br>thanks!<br></span><br></strong>
<br>_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br></blockquote></div><br>