PyGetGPT/start.sh

13 lines
324 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 定义要运行的Python文件
PYTHON_APP="main.py"
# 使用nohup命令启动Python程序并将其输出重定向到日志文件
nohup python3 $PYTHON_APP > output.log 2>&1 &
# 打印消息,通知用户程序已启动
echo "Python application started!"
# 可以添加任何其他需要的启动逻辑