I am trying to run a code using "nohup" command with Anaconda IPython. My code runs fine (for hours) if I run it inside ipython environment like;
irsacf00-debian:~/WISE_AP> ipython
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: %run WISE_PHOT_052918_MODULER_IRSACF.py
However, when I try to run the same code using "nohup" it breaks down with the following error message (last 2 lines). This is copy pasted from output file.
[[0;31mOSError^[[0m: [Errno 5] Input/output error
In [2]: Do you really want to exit ([y]/n)?
My nohup command looks like this;
irsacf00-debian:~/WISE_AP> nohup ipython <input_file> output_file &
My input file looks like this;
%run /home/aprakash/WISE_AP/WISE_PHOT_052918_MODULER_IRSACF.py
I can't figure out where the code is getting stuck. Thanks for help!
Best, Abhi