mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-23 08:00:23 +00:00
Update shell_execute.py
This commit is contained in:
parent
d0ebf3d783
commit
c566fd1f66
1 changed files with 9 additions and 0 deletions
|
@ -65,3 +65,12 @@ def execute_command_output_all(cmd_str, max_time = 3):
|
||||||
excutetime = excutetime + 1
|
excutetime = excutetime + 1
|
||||||
|
|
||||||
return {"code": "-1", "result": "command excute failed, please check your command!"}
|
return {"code": "-1", "result": "command excute failed, please check your command!"}
|
||||||
|
|
||||||
|
def convert_command(cmd_str):
|
||||||
|
convert_cmd = ""
|
||||||
|
if cmd_str == "":
|
||||||
|
convert_cmd=cmd_str
|
||||||
|
else:
|
||||||
|
convert_cmd='echo "'+cmd_str+'" > /hostpipe/appmanage'
|
||||||
|
|
||||||
|
return convert_cmd
|
||||||
|
|
Loading…
Reference in a new issue