I m running on a remote server a python script using nohup.
Second I run a pytho
I finally fixed the problem by opening the file "file_in", modifying it (just adding a point in the REMARK line for example) and saving the changes.
I had the same problem, I used to run my script using this command:
python MY_SCRIPT.py &
The script will run in the background and the output will be displayed on the terminal until you logout or exit.
By logging out, the script is still running but it's output has nowhere to display thus, exceptions will be made when the script wants to display something (e.g. calling print).
Solution:
I've piped the output to somewhere other than the actual terminal display:
python MY_SCRIPT.py >/dev/null &
Checkout this link for more details:
https://stackoverflow.com/a/38238281/6826476