Linux 后台运行程序,输出日子文件

nohup venv/bin/python bin/photo_data.py > ph_save.log 2>&1 & 
或者 nohup python -u test.py > test.log 2>&1 &
sh 文件
nohup sh test.sh > test.log 2>&1 &




查看进程

ps -ef | grep python
posted @ 2020-11-25 08:51  hifalee  阅读(110)  评论(0编辑  收藏  举报