<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 12:21 PM, Jason Willis <span dir="ltr"><<a href="mailto:chaoticslacker@gmail.com">chaoticslacker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi everyone, <br><br>sorry for the rather boring question but i'm having serious issues getting my programs to run from the command line without having to type "python" in-front of them. I've tried a lot of different variations on the #!/usr/bin/ etc. line and have come up with the following every time:<br>
<br><b><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've chmod'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's been built into linux itself to work that way... <br>
<br>please someone let me know what i'm doing wrong here and possibly help?? <br><br>thanks!<br></span><br></b>
<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>try:<br><br>./mycode.py<br><br>since i'm guess your current path isn't in the system path<br><br>Vince<br><br>