# How to run two scripts independantly from the REPL?

**URL:** <https://discourse.julialang.org/t/how-to-run-two-scripts-independantly-from-the-repl/121541>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 21, 2024, 4:59pm UTC](https://discourse.julialang.org/t/how-to-run-two-scripts-independantly-from-the-repl/121541 "2024-10-21T16:59:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [October 21, 2024, 4:59pm UTC](https://discourse.julialang.org/t/how-to-run-two-scripts-independantly-from-the-repl/121541/1 "2024-10-21T16:59:14Z")

</div>

I have two scripts, named `autopilot.jl` and `parking_wind_dir.jl`. You can find them online: [KiteControllers.jl/examples at old\_stable · aenarete/KiteControllers.jl · GitHub](https://github.com/aenarete/KiteControllers.jl/tree/old_stable/examples)

I can run the first script, I can run the second script, but if I run the second script first, then running the first script fails. This fails:

```julia
julia --project
include("examples/autopilot.jl")

```

Click to close the Makie window.

```julia
include("examples/parking_wind_dir.jl")

```

There is no crash of the program, but the kite crashes, as if some parameters would have been changed. But there are no common, global variables. I also put both scripts in `let` blocks which did not help. I also ensured the the two scripts do not contain functions with the same name.

Could that be related to the event handlers, like:

```julia
on(app.viewer.btn_PARKING.clicks) do c; parking(); end
on(app.viewer.btn_AUTO.clicks) do c; autopilot(); end
on(app.viewer.btn_STOP.clicks) do c; stop_(); end

```

If yes, how can I get rid of them/ disable them at the end of the second script?

Any ideas how to debug that further?
