|
#1
|
|||
|
|||
|
Uploaded this, didn't work.
Fooled around with the permissions, still didn't work. Is Python installed at all? - Jeff #!/usr/local/bin/python print "Content-type: text/html" print "<pre>" import os, sys from cgi import escape print "<strong>Python %s</strong>" % sys.version keys = os.environ.keys() keys.sort() for k in keys: print "%s\t%s" % (escape(k), escape(os.environ[k])) print "</pre>" |
|
#2
|
|||
|
|||
|
Hello,
![]() I think the path is wrong. Just tested it myself and found it to be /usr/bin/python, it's there and working. Also the indentation breaks (I guess that's because you pasted it to forum without using code tags) So, this should work: Code:
#!/usr/bin/python import os, sys from cgi import escape print "Content-type: text/html" print print "<pre>" print "<strong>Python %s</strong>" % sys.version keys = os.environ.keys() keys.sort() for k in keys: print "%s\t%s" % (escape(k), escape(os.environ[k])) print "</pre>" Last edited by spectre; 11-25-2005 at 09:35 AM. |
|
#3
|
|||
|
|||
|
If I'm correct, python needs permissions 755. Otherwise, it should be installed. You should sumbit a support ticket to make sure python is infact installed and if not for the admin to install it.
[Edit] I'll talk to an admin about adding the python path to the knowledgebase.
__________________
Last edited by MachineDog; 11-25-2005 at 09:40 AM. |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 02:17 AM.









