Nohup is not writing log to output file October 24, 2022 by Tarik You can run Python with the -u flag to avoid output buffering: nohup python -u ./cmd.py > cmd.log &