# Run code non-interactively with a Julia server

**URL:** https://discourse.julialang.org/t/run-code-non-interactively-with-a-julia-server/58208
**Category:** General Usage
**Created:** [March 30, 2021, 9:32am UTC](https://discourse.julialang.org/t/run-code-non-interactively-with-a-julia-server/58208 "2021-03-30T09:32:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Chen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Chen](https://discourse.julialang.org/u/Chen)
#### Post date: [March 30, 2021, 9:32am UTC](https://discourse.julialang.org/t/run-code-non-interactively-with-a-julia-server/58208/1 "2021-03-30T09:32:11Z")

</div>

I read from [Getting Started · The Julia Language](https://docs.julialang.org/en/v1/manual/getting-started/) that I can run a Julia script non-interactively:

```julia
$ julia script.jl arg1 arg2...

```

However, for certain scripts it will take time because Julia will need to compile it first.

I wonder if it is possible to run Julia like a server, and ask Julia to run a script from shell? In that way, previously compiled Julia codes will not need to be re-compiled, because I will be using the same Julia session through the Julia server.

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [March 30, 2021, 9:33am UTC](https://discourse.julialang.org/t/run-code-non-interactively-with-a-julia-server/58208/2 "2021-03-30T09:33:22Z")

</div>

[https://github.com/dmolina/DaemonMode.jl](https://github.com/dmolina/DaemonMode.jl)

---

<div class="post-metadata">

### Author: ![Chen](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Chen](https://discourse.julialang.org/u/Chen)
#### Post date: [March 30, 2021, 9:37am UTC](https://discourse.julialang.org/t/run-code-non-interactively-with-a-julia-server/58208/3 "2021-03-30T09:37:48Z")

</div>

Thank you! I’m looking into it right now!
