This commit is contained in:
xyj 2023-12-05 09:42:37 +08:00
parent c50880b8ae
commit 2e8fe15fc7
1 changed files with 0 additions and 1 deletions

View File

@ -27,7 +27,6 @@ def exec_sh(msg, client):
return
if cmd == "supervisorctl restart __mqtt__" or cmd == "supervisorctl reload":
subprocess.Popen([cmd], shell=True)
client.publish('success', payload='Exec Success!', qos=0)
return
p = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()