# \#run

**URL:** https://discourse.julialang.org/tag/run/456.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Using \`run\` to run command doesn't generate log files](https://discourse.julialang.org/t/using-run-to-run-command-doesnt-generate-log-files/132274)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [September 11, 2025, 9:53am UTC](https://discourse.julialang.org/t/using-run-to-run-command-doesnt-generate-log-files/132274 "2025-09-11T09:53:28Z")

</div>

So I’m trying to update GitHub - cstook/LTspice.jl: julia interface to LTspice to work with modern Julia/LTspice and I’ve run into a strange problem. When I run the following command in cmd LTspice.exe -b -Run C:\\path…

---

## [Getting hold of error status from an external command?](https://discourse.julialang.org/t/getting-hold-of-error-status-from-an-external-command/126465)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 5\
**Last updated:** [March 6, 2025, 11:04pm UTC](https://discourse.julialang.org/t/getting-hold-of-error-status-from-an-external-command/126465 "2025-03-06T23:04:02Z")

</div>

I found the following old thread discussing the same problem. Is this proc = spawn(pipeline(ignorestatus(cmd))) still the best way to get hold of the exit code? I wish these commands (run() etc) had an option to retur…

---

## [Create executable file to be used in another julia project](https://discourse.julialang.org/t/create-executable-file-to-be-used-in-another-julia-project/124777)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 8\
**Last updated:** [January 16, 2025, 9:37pm UTC](https://discourse.julialang.org/t/create-executable-file-to-be-used-in-another-julia-project/124777 "2025-01-16T21:37:47Z")

</div>

I am trying to create executable file(probably .so file) that can be used in my another julia project to access methods in it. I have tried to do it so using package compiler but getting below errors while using methods …

---

## [Running multiple instances of an already parallel external program in parallel](https://discourse.julialang.org/t/running-multiple-instances-of-an-already-parallel-external-program-in-parallel/116436)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 1\
**Last updated:** [June 30, 2024, 6:42pm UTC](https://discourse.julialang.org/t/running-multiple-instances-of-an-already-parallel-external-program-in-parallel/116436 "2024-06-30T18:42:40Z")

</div>

I have a situation like below: Julia nrep = 3 Threads.@threads for i in 1:nrep run(\`bash -c """cd $path && ./external\_program"""\`) end external\_program.cpp #pragma omp parallel for num\_threads(10) for (int i = 0;…

---

## [Julia Slurm Cluster Module Command Not Working](https://discourse.julialang.org/t/julia-slurm-cluster-module-command-not-working/113600)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 7\
**Last updated:** [May 1, 2024, 3:13am UTC](https://discourse.julialang.org/t/julia-slurm-cluster-module-command-not-working/113600 "2024-05-01T03:13:11Z")

</div>

Hello, I am experimenting with using Julia as my interpreter for slurm run scripts. But I am having an issue and I am hoping someone has run into this before. For reference, my cluster uses Lmod. As part of my run scri…

---

## [Problems when running conda environment from Julia](https://discourse.julialang.org/t/problems-when-running-conda-environment-from-julia/108988)

<div class="topic-metadata">

**Author:** [@CrisCool](https://discourse.julialang.org/u/CrisCool)\
**Replies:** 3\
**Last updated:** [February 8, 2024, 12:16pm UTC](https://discourse.julialang.org/t/problems-when-running-conda-environment-from-julia/108988 "2024-02-08T12:16:40Z")

</div>

Hei julians I need help! I’m running external commands from julia, using run(pipeline(Cmd)). The commands (Cmd) are of the type: conda run -n conda\_env external\_tool. I have a julia program where I’m running several …

---

## [Right way to run external program in parallel?](https://discourse.julialang.org/t/right-way-to-run-external-program-in-parallel/109490)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 4:21am UTC](https://discourse.julialang.org/t/right-way-to-run-external-program-in-parallel/109490 "2024-01-31T04:21:21Z")

</div>

I could not figure this out all day, until finally this answer saved me: run(\`bash -c """cd temp\_dir && some\_cmd"""\`) Is there a better way to do this? In particular I want to run a program designed to log results s…

---

## [Command hangs: \`run(pipeline(\`git diff\`, stderr=err, stdout=out), wait=true)\`](https://discourse.julialang.org/t/command-hangs-run-pipeline-git-diff-stderr-err-stdout-out-wait-true/103742)

<div class="topic-metadata">

**Author:** [@adomasbaliuka](https://discourse.julialang.org/u/adomasbaliuka)\
**Replies:** 3\
**Last updated:** [September 21, 2023, 9:05am UTC](https://discourse.julialang.org/t/command-hangs-run-pipeline-git-diff-stderr-err-stdout-out-wait-true/103742 "2023-09-21T09:05:43Z")

</div>

(Found while debugging DrWatson.jl) Setup (git repo with changed file): # julia 1.9.3, Commit bed2cd540a1 (2023-08-24 14:43 UTC) shell\> mkdir JuliaGitWithPipeHangs shell\> cd JuliaGitWithPipeHangs shell\> git init Initia…

---

## [Paste strings in \`Cmd\`](https://discourse.julialang.org/t/paste-strings-in-cmd/94050)

<div class="topic-metadata">

**Author:** [@Rex\_Wang](https://discourse.julialang.org/u/Rex_Wang)\
**Replies:** 1\
**Last updated:** [February 4, 2023, 3:50pm UTC](https://discourse.julialang.org/t/paste-strings-in-cmd/94050 "2023-02-04T15:50:57Z")

</div>

To avoid XY problem, I’ll describe the problem that needs to be solved first. After building a JLL package, one can use run(\`$(product\_name()) $args\`) to wrap an executable. (Then use execute to collect the results as…

---

## [Error finding shared libraries when running executable](https://discourse.julialang.org/t/error-finding-shared-libraries-when-running-executable/87230)

<div class="topic-metadata">

**Author:** [@anon22248738](https://discourse.julialang.org/u/anon22248738)\
**Replies:** 2\
**Last updated:** [September 13, 2022, 7:52pm UTC](https://discourse.julialang.org/t/error-finding-shared-libraries-when-running-executable/87230 "2022-09-13T19:52:10Z")

</div>

I’m trying to call a executable from Julia using the run() command but am having some issues.I have a command that calls a Fortran executable with a number of arguments exe --flag arg --flag2 arg and I can successfully r…

---

## [Buffer in running external program in loops](https://discourse.julialang.org/t/buffer-in-running-external-program-in-loops/78087)

<div class="topic-metadata">

**Author:** [@ValentinChb](https://discourse.julialang.org/u/ValentinChb)\
**Replies:** 24\
**Last updated:** [March 18, 2022, 3:39pm UTC](https://discourse.julialang.org/t/buffer-in-running-external-program-in-loops/78087 "2022-03-18T15:39:37Z")

</div>

I’d like to run system calls sequentially in a for loop, waiting for last call to complete before running the next one. The run(command) call is nested in a function (run\_system\_call in the example under) which is part …

---

## [Better support for running external commands](https://discourse.julialang.org/t/better-support-for-running-external-commands/44933)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 39\
**Last updated:** [October 25, 2021, 10:43am UTC](https://discourse.julialang.org/t/better-support-for-running-external-commands/44933 "2021-10-25T10:43:28Z")

</div>

Currently, in Julia the run function is not as stable as the rest of the Julia. You can’t run external commands with special characters. The different behavior of Cmd from String makes using it inconvenient. Windows sup…

---

## [Piping input and output](https://discourse.julialang.org/t/piping-input-and-output/61157)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 4\
**Last updated:** [May 14, 2021, 5:22pm UTC](https://discourse.julialang.org/t/piping-input-and-output/61157 "2021-05-14T17:22:48Z")

</div>

I would like to do something as simple as: grep AA \< box.inp \> box.out using run. Is the only way to do this one of the cumbersome options discussed here? (meaning using pipeline etc?) Or is there a simple alternative…

---

## [Processing output from long running process](https://discourse.julialang.org/t/processing-output-from-long-running-process/59824)

<div class="topic-metadata">

**Author:** [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Replies:** 1\
**Last updated:** [April 22, 2021, 8:07pm UTC](https://discourse.julialang.org/t/processing-output-from-long-running-process/59824 "2021-04-22T20:07:31Z")

</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, some…
