test
This commit is contained in:
parent
8b4235b9fd
commit
90675ccd5a
6
tool.py
6
tool.py
|
@ -6,11 +6,11 @@ from fastapi import FastAPI
|
|||
|
||||
|
||||
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():
|
||||
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):
|
||||
|
@ -21,7 +21,7 @@ def exec_sh(msg):
|
|||
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue