Off-topic

Ivan Van Laningham ivanlan at callware.com
Wed Apr 12 15:40:13 EDT 2000


Hi Jeff, All--

Jeff Bauer wrote:
> 
> Ivan Van Laningham wrote:
> > Sh scripts do work, as long as I remember to do ./script ;-).  I'm
> > running as root (but the same thing happens when I run as myself, too).
> 
> Okay, my last post to you went out before I saw the above
> on c.l.py.
> 
> Is there an issue with your PATH environ?
> 
> $ hello.py
> bash: hello.py: command not found
> 
> $ echo $PATH
> /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/jbauer/bin:\
> /usr/local/mysql/bin:/usr/local/jdk/bin:/var/share/s0/bin
> 
> $ export PATH=.:$PATH
> $ hello.py
> Hello, nerd.
> 
> Note that it's probably dangerous to use '.' in your root path.
> 

Yup, of course.

The problem turned out to be two things:  the "h2n" command had not
after all been changed to unix line endings, which made it not work
unless the interpreter was explicitly invoked on it; and forgetting to
/test.py instead of test.py.  Even though I had *just* ./test.sh 5
seconds before, I forgot on test.py.  Bleaugh.

Sorry to waste bandwidth.

<craft>ly y'rs,
Ivan;-(
----------------------------------------------
Ivan Van Laningham
Callware Technologies, Inc.
http://www.pauahtun.org 
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours




More information about the Python-list mailing list