Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import subprocess
|
|
| 3 |
# 定义 shell 脚本的路径
|
| 4 |
script_path = '/home/user/app/a.sh'
|
| 5 |
|
| 6 |
-
# 使用 subprocess.run 来运行 shell
|
| 7 |
result = subprocess.run(['bash', script_path], capture_output=True, text=True)
|
| 8 |
|
| 9 |
# 打印输出和错误
|
|
|
|
| 3 |
# 定义 shell 脚本的路径
|
| 4 |
script_path = '/home/user/app/a.sh'
|
| 5 |
|
| 6 |
+
# 使用 subprocess.run 来运行 shell
|
| 7 |
result = subprocess.run(['bash', script_path], capture_output=True, text=True)
|
| 8 |
|
| 9 |
# 打印输出和错误
|