Python when you run it as a background process, it keeps the buffers to itself and does not output anything to your nohup.out, I was stuck at this problem for hours until jk helped me! The solution is to just use python -u
Yup that's it!
So instead of nohup python filename.py & use nohup python -u filename.py &
Few more important commands:
Getting a list of processes
ps -ax | grep python
Force kill a process
kill -9 processid
No comments:
Post a Comment