# Processing output from long running process

**URL:** https://discourse.julialang.org/t/processing-output-from-long-running-process/59824
**Category:** New to Julia
**Tags:** run
**Created:** [April 22, 2021, 8:00pm UTC](https://discourse.julialang.org/t/processing-output-from-long-running-process/59824 "2021-04-22T20:00:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)
#### Post date: [April 22, 2021, 8:00pm UTC](https://discourse.julialang.org/t/processing-output-from-long-running-process/59824/1 "2021-04-22T20:00:28Z")

</div>

I have long running process, which outputs many things which I do not usually need (or want to transform). I want to run this process capturing, filtering output lines from the process till it finished.

In essence, something like the following, but outputting next line as soon as it is available, without waiting for the process to finish:

```julia
for line in readlines(`ping localhost -c 5`)
       println(line)
end

```

---

<div class="post-metadata">

### Author: ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)
#### Post date: [April 22, 2021, 8:07pm UTC](https://discourse.julialang.org/t/processing-output-from-long-running-process/59824/2 "2021-04-22T20:07:31Z")

</div>

Appears I could just call `eachline` instead of `readlines`
