I try to use nohup to record the output of my python script. However, I can see the output to the screen when I am not using nohup.
Start at XX:XX:XX
Finished at XX:XX:XX
But then I use nohup but the nohup.out file is empty. Anyone got a hint of what is going on?
This is the command I used :
nohup python myPython.py &
I tried nohup before and it work perfectly good. I also tried to run some short test python script to record the output and it is good, too.
The test script is short and simple:
string1 = ["John","1","2","0","f","a","s"] line = [""]*6 line[3:6] = string1 [0:3] print line