# \`tee\`-like pattern for external processes in Julia

**URL:** <https://discourse.julialang.org/t/tee-like-pattern-for-external-processes-in-julia/6462>\
**Category:** General Usage\
**Created:** [October 16, 2017, 7:16am UTC](https://discourse.julialang.org/t/tee-like-pattern-for-external-processes-in-julia/6462 "2017-10-16T07:16:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![freeboson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freeboson/32/2198_2.png) [@freeboson](https://discourse.julialang.org/u/freeboson)\
**Post date:** [October 16, 2017, 7:16am UTC](https://discourse.julialang.org/t/tee-like-pattern-for-external-processes-in-julia/6462/1 "2017-10-16T07:16:58Z")

</div>

I have a large data stream in a `pipeline` that does compression and uploading. I would like to do two things with the output of the compression:

1. Upload it as before
2. Compute a hash (or several hashes)

In the shell it would be something like `$ dump_data | compress | tee >(upload) >(hash)`. Is there an equivalent pattern in Julia?
