update
This commit is contained in:
parent
86a4fa3265
commit
d80b24bab6
1
test.py
1
test.py
|
@ -1,5 +1,4 @@
|
|||
import json
|
||||
import time
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
|
|
1
tool.py
1
tool.py
|
@ -60,7 +60,6 @@ def exec_sh(msg, client):
|
|||
client.publish(info_topic, payload=publish_payload(code=200, msg='reloading'), qos=0)
|
||||
subprocess.Popen([cmd], shell=True)
|
||||
return
|
||||
# subprocess.Popen([cmd], shell=True)
|
||||
p = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
out, err = p.communicate()
|
||||
output = out.decode('utf-8').strip()
|
||||
|
|
Loading…
Reference in New Issue