# Avoid printout to REPL/console of running a command

**URL:** <https://discourse.julialang.org/t/avoid-printout-to-repl-console-of-running-a-command/79843>\
**Category:** General Usage\
**Created:** [April 22, 2022, 1:50pm UTC](https://discourse.julialang.org/t/avoid-printout-to-repl-console-of-running-a-command/79843 "2022-04-22T13:50:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [April 22, 2022, 1:50pm UTC](https://discourse.julialang.org/t/avoid-printout-to-repl-console-of-running-a-command/79843/1 "2022-04-22T13:50:10Z")

</div>

I am on Windows and vs code.  
The snippet below prints a ton of verbose mixtex code to the console.  
I thought `read` would circumvent this, but that is not the case.

Any ideas how I can disable this?  
I am looking for a Julia solution (and not some flag for the miktex-pdftex call to disable the information)

```julia
try
           a = read(run(`miktex-pdftex.exe -undump=pdflatex $(tmp_tex_fi) --output-directory=$(tmpfld)`));
        catch er 
            @show er 
        end

```

```julia
julia> try
                  a = read(run(`miktex-pdftex.exe -undump=pdflatex $(tmp_tex_fi) --output-directory=$(tmpfld)`));
               catch er
                   @show er
               end
This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8)
entering extended mode
(C:/temp/jl_Pydv7Y/plot.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-08-27> (C:\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/02/12 v1.4n Standard LaTeX document class
(C:\MiKTeX\tex/latex/base\size11.clo))
(C:\MiKTeX\tex/latex/graphics\graphicx.sty
(C:\MiKTeX\tex/latex/graphics\keyval.sty)
(C:\MiKTeX\tex/latex/graphics\graphics.sty
(C:\MiKTeX\tex/latex/graphics\trig.sty)

```

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [April 22, 2022, 1:54pm UTC](https://discourse.julialang.org/t/avoid-printout-to-repl-console-of-running-a-command/79843/2 "2022-04-22T13:54:28Z")

</div>

Try:

```julia
run(pipeline(`miktex-pdftex.exe -undump=pdflatex $(tmp_tex_fi) --output-directory=$(tmpfld)`, devnull))

```
