stupid Win-CGI getting started question

Duncan Booth duncan at rcp.co.uk
Thu Apr 15 04:45:36 EDT 1999


bill_seitz at my-dejanews.com wrote in <7f2db8$dev$1 at nnrp1.dejanews.com>:
>I tried your test.cmd (after changing the first line, using your quoted path
>and making it my path of course). Now I get a response back of    internal or
>external command, operable program or batch file. The server acts shows this
>as a successful delivery (no error in the logs, status=200). Does that mean
>the problem is now within Python?

Looks like you are getting the second line of the message:
The name specified is not recognized as an
internal or external command, operable program or batch file.

It sounds like you still don't have the right path to python, or it is 
protected so you can't access it. I would check the file permissions: you 
probably need to give SYSTEM (or whatever user the CGI process is running as) 
on the web server full access to the python directory.

Try creating a CGI cmd file like this:
----access.cmd---------
@echo Content-type: text/plain
@echo ""
@echo on
dir d:\
dir "d:\program files"
dir "d:\program files\python"
----end of access.cmd---------
That should show you the python directory, if not, you need to change the 
permissions.

-- 
Duncan Booth                                    duncan at dales.rmplc.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan




More information about the Python-list mailing list