我正在撰写一份网络应用程序,将在当地Windows服务器上安装一个指挥系统,并显示产出。 我的法典中的“Popen()”呼吁对“Good”译员执行罚款,但通过国际独立调查局执行时会留下新的错误。 !
案文:
追溯(最近发出的呼吁):
File "C:pythonappsmystdout.py", line 9, in print Popen( ipconfig , shell=True, stdout=PIPE).communicate()[0]
File "C:Python27libsubprocess.py", line 672, in init errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "C:Python27libsubprocess.py", line 774, in _get_handles p2cread = _subprocess.GetStdHandle(_subprocess.STD_INPUT_HANDLE)
WindowsError: [Error 6] 工作无效
from subprocess import *
print "Content-type:text/html
"
print "<html>"
print "<head>"
print "<title>FSPCT app</title>"
print "</head>"
print "<body>"
print Popen( ipconfig , shell=True, stdout=PIPE).communicate()[0]
print "</body>"
print "</html>"