Println and nohup


#1

I have a long julia job running, so I started it up with nohup on my server. But I find that the diagnostic information, which would be printed to the screen, isn’t showing up in the nohup.out. I’m wondering if it’s just getting buffered somewhere and will only print at the end? Has anyone experimented with this?


#2

I use nohup with Julia 0.6 often. A couple of things to check: first, be sure to say > & nohup.out instead of > nohup.out. Second, you can insert flush(STDOUT) in strategic places in your code to make sure the output file is updated frequently.