Displaying Output with Scripts


#1

I sometimes run long Julia jobs on a cluster. While my code has println statements in it to display information about the progress of the script, these only show up in the cluster output file at the very end. In Python there’s a flush command that accomplishes this. Is there some analog in Julia?


#2

I assume you know about the Logging library in Stdlib? Although no default flushing logger is provided, IOLogging.jl could probably do what you want (by flushing logging output to a file) or ProgressMeter.jl for visual feedback.


#3

There is flush(stdout) in Julia also.