Python 程序使用 nohup 后台运行时日志哪里去了?

https://stackoverflow.com/questions/12919980/nohup-is-not-writing-log-to-output-file

export PYTHONUNBUFFERED=1
nohup ./cmd.py > cmd.log &

or

nohup python -u ./cmd.py > cmd.log &

https://docs.python.org/2/using/cmdline.html#cmdoption-u

点击进入评论 ...