This commit is contained in:
xyj 2023-12-04 10:08:22 +08:00
parent 8b4235b9fd
commit 90675ccd5a
1 changed files with 3 additions and 3 deletions

View File

@ -6,11 +6,11 @@ from fastapi import FastAPI
def push_stream(): def push_stream():
subprocess.Popen(['/bin/bash start_push.sh'], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) subprocess.Popen(['/bin/bash start_push.sh'], shell=True)
def close_stream(): def close_stream():
subprocess.Popen(['/bin/bash stop_push.sh'], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) subprocess.Popen(['/bin/bash stop_push.sh'], shell=True)
def exec_sh(msg): def exec_sh(msg):
@ -21,7 +21,7 @@ def exec_sh(msg):
def update(): def update():
subprocess.Popen(['/bin/bash update.sh'], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) subprocess.Popen(['/bin/bash update.sh'], shell=True)
def get_list_record(msg, client): def get_list_record(msg, client):