WebOperationContext.Current.OutgoingResponse.StatusCode = System.Net.HttpStatusCode.NoContent;
当我执行此脚本时,错误是:
import subprocess, sys, shlex
for i in range(n):
node_id = "n" + str(i + 1)
cmd = "x-terminal-emulator -e 'sudo python3.2 node.py " + str(n) + " " + node_id + "'"
process = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE)
#process.wait()
print (process.returncode)