Xoctor
December 6th, 2005, 03:28 AM
Can someone help me with a little problem I'm having running python cgi scripts?
My program, test.py has its executable bit set for all users, and works from the command line when I type ./test.py, but wont work as a CGI with apache 2 with the normal hashpling of #!/usr/bin/env python, however it does work with a hashpling of #!/usr/bin/python.
Its a pain because I'm testing on my local Ubuntu machine, but production is an OpenBSD box where #!/usr/bin/python wont work.
Xoc
My program, test.py has its executable bit set for all users, and works from the command line when I type ./test.py, but wont work as a CGI with apache 2 with the normal hashpling of #!/usr/bin/env python, however it does work with a hashpling of #!/usr/bin/python.
Its a pain because I'm testing on my local Ubuntu machine, but production is an OpenBSD box where #!/usr/bin/python wont work.
Xoc