/ Home \ | \ Subjects / |
19/04/2010 09:27 Rimifon: |
python script is not work in smallsrv,return error: Error.Script return nothing (ipv4.rimifon.tk/info.cgi) .. console running is OK.(use "./info.py").return: X-Powerd-Test: Python Content-type: text/html <H3>Shell Environment:</H3> <DL> <DT> HOME <DD> /root <DT> HUSHLOGIN <DD> FALSE <DT> LOGNAME <DD> root <DT> MAIL <DD> /var/mail/root <DT> OLDPWD <DD> /home/rimifon/shttplnx/outbox <DT> PATH <DD> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin <DT> PS1 <DD> \h:\w\$ <DT> PWD <DD> /home/rimifon/hosts/default <DT> REMOTEHOST <DD> **.**.**.** <DT> SHELL <DD> /bin/bash <DT> SHLVL <DD> 2 <DT> TERM <DD> ansi <DT> TZ <DD> Asia/Chongqing <DT> USER <DD> root <DT> _ <DD> ./info.py </DL> source: #!/usr/bin/python import cgi; print "X-Powerd-Test: Python"; print "Content-type: text/html\r\n"; cgi.print_environ(); |
19/04/2010 09:28 Rimifon: |
url is ipv4.rimifon.tk/info.py
|
20/04/2010 10:34 Rimifon: |
Sorry, that's server's problem.
|
20/01/2015 10:17 wei68111: |
|