# Interact with another REPL/Terminal using Julia?

**URL:** <https://discourse.julialang.org/t/interact-with-another-repl-terminal-using-julia/14356>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 31, 2018, 9:08am UTC](https://discourse.julialang.org/t/interact-with-another-repl-terminal-using-julia/14356 "2018-08-31T09:08:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![onetonfoot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/onetonfoot/32/2697_2.png) [@onetonfoot](https://discourse.julialang.org/u/onetonfoot)\
**Post date:** [August 31, 2018, 9:08am UTC](https://discourse.julialang.org/t/interact-with-another-repl-terminal-using-julia/14356/1 "2018-08-31T09:08:02Z")

</div>

How would I go about reading and writing from another REPL/Terminal using Julia? I think it can be done with the `readandwrite` function, but I can’t figure it out. For example say I wanted to use the command line calculator `bc` from Julia, I’d image the pseudo-code to be something like:

```julia
input,output = create_repl(`bc`)
write(input, "4+4")
read(output)
"8"

```

I actually want to interact with headless chrome in REPL mode, something like [this](https://github.com/integrii/headlessChrome)

---

<div class="post-metadata">

**Author:** ![onetonfoot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/onetonfoot/32/2697_2.png) [@onetonfoot](https://discourse.julialang.org/u/onetonfoot)\
**Post date:** [September 7, 2018, 10:26am UTC](https://discourse.julialang.org/t/interact-with-another-repl-terminal-using-julia/14356/2 "2018-09-07T10:26:36Z")

</div>

I’m bad at searching, it was [here](https://discourse.julialang.org/t/communication-with-a-command-line-program/4448) all along. Still unsure why `readline` works but `read` doesn’t…
