python3 xxxx.py > somefile.log 2>&1 &
并没有立即输出日志。
增加一个 -u 就可以。因为 python 的输出缓存导致没有立即输出。
python3 -u xxxx.py > somefile.log 2>&1 &
python3 xxxx.py > somefile.log 2>&1 &
并没有立即输出日志。
增加一个 -u 就可以。因为 python 的输出缓存导致没有立即输出。
python3 -u xxxx.py > somefile.log 2>&1 &