python的输出有缓冲,导致python.log3并不能够马上看到输出。 使用-u参数,使得python不启用缓冲。 所以改正命令,就可以正常使用了 nohup python -u test.py > out.log 2>&1 & 查看输出 tail -f out.log
python后台运行一个命令美滋滋
猜你喜欢
转载自394498036.iteye.com/blog/2409935
今日推荐
周排行