#模型文件运行

This commit is contained in:
xieshen 2019-06-11 09:16:57 +08:00
parent 07637ecf68
commit 3fcdc5fc61
1 changed files with 2 additions and 2 deletions

View File

@ -290,8 +290,8 @@ def model_data_upload(request):
child.sendline(pwd) child.sendline(pwd)
child.sendline("sudo mkdir 11111111111111") child.sendline("sudo mkdir 11111111111111")
child.sendline(pwd) child.sendline(pwd)
child.interact() # child.interact()
ssh = pexpect.spawn('ssh hui@210.72.80.2') # ssh = pexpect.spawn('ssh hui@210.72.80.2')
# os.system("unzip %s" % (files)) # os.system("unzip %s" % (files))
# os.system('echo java -mx512m -jar maxent.jar -e %s -s %s -o %s -r autorun tooltips > zhao.sh'(files,csv,000)) # os.system('echo java -mx512m -jar maxent.jar -e %s -s %s -o %s -r autorun tooltips > zhao.sh'(files,csv,000))
return HttpResponse('ok') return HttpResponse('ok')