# Displaying Output with Scripts

**URL:** https://discourse.julialang.org/t/displaying-output-with-scripts/19285
**Category:** General Usage
**Created:** [January 4, 2019, 8:32pm UTC](https://discourse.julialang.org/t/displaying-output-with-scripts/19285 "2019-01-04T20:32:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gideonsimpson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gideonsimpson/32/1928_2.png) [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)
#### Post date: [January 4, 2019, 8:32pm UTC](https://discourse.julialang.org/t/displaying-output-with-scripts/19285/1 "2019-01-04T20:32:17Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)
#### Post date: [January 4, 2019, 9:07pm UTC](https://discourse.julialang.org/t/displaying-output-with-scripts/19285/2 "2019-01-04T21:07:45Z")

</div>

I assume you know about the [Logging](https://docs.julialang.org/en/v1/stdlib/Logging/) library in Stdlib? Although no default flushing logger is provided, [IOLogging.jl](https://github.com/seelengrab/IOLogging.jl) could probably do what you want (by flushing logging output to a file) or [ProgressMeter.jl](https://github.com/timholy/ProgressMeter.jl) for visual feedback.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [January 4, 2019, 10:06pm UTC](https://discourse.julialang.org/t/displaying-output-with-scripts/19285/3 "2019-01-04T22:06:10Z")

</div>

> [@gideonsimpson](#):
>
> In Python there’s a flush command that accomplishes this. Is there some analog in Julia?

There is `flush(stdout)` in Julia also.
