newbie simple exec problems

Matthew Barre mbarre at mac.com
Tue Mar 7 21:43:57 EST 2000


That works, thank you. What do I need to do to get it to work for cgi? Can I
just put ~user/cgi-bin/.cgi.py?



-Matt
---------
"Ray! When someone asks you if you're a god, you say YES!!" -Winston Zedmore

> From: Michael Hudson <mwh21 at cam.ac.uk>
> Organization: University of Cambridge, England
> Newsgroups: comp.lang.python
> Date: 08 Mar 2000 00:15:52 +0000
> Subject: Re: newbie simple exec problems
> 
> Matthew Barre <mbarre at mac.com> writes:
> 
>> I have been learning python on my mac, and I just setup a RH6.1 box on my
>> little LAN to practice Python as a cgi tool etc. Well the cgi thing has me
>> completely baffled and right now I can't even get a Hello World script to
>> run at the prompt ie:
>> 
>> $hello.py
>> bash:unrecognized command
>> 
>> I have tried chmod 0755 hello.py and
>> chmod a+x hello.py
>> 
>> The first line of the file is
>> #!/usr/bin/python
>> 
>> which is where I checked and that's where python is. I'm baffled. Right now
>> if I try to get a cgi the browser just prints the script...ack...what am I
>> doing wrong?
>> 
>> -Matt
>> ---------
>> "Ray! When someone asks you if you're a god, you say YES!!" -Winston Zedmore
>> 
> 
> Try
> 
> $ ./hello.py
> 
> `.' may well not be on your $PATH...
> 
> HTH, HAND
> Michael
> 
> -- 
> very few people approach me in real life and insist on proving they are
> drooling idiots.                         -- Erik Naggum, comp.lang.lisp




More information about the Python-list mailing list