Hi, is there someone using a python cgi with ip/httpd? I wonder why the following simple python script doesn't run with "print sys.argv" line. If you omit "print sys.argv" line, it runs fine.
===
#!/bin/python
import sys
import cgi
msg = '''Content-Type: text/html
<html>
<head>
<title>Python CGI sample</title>
</head>
<body>
<h1>Python CGI sample</h1>
<pre>
'''
print msg
print sys
print sys.argv
print '''</pre>
</body>
</html>
'''
