Avoid printout to REPL/console of running a command

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)

try
           a = read(run(`miktex-pdftex.exe -undump=pdflatex $(tmp_tex_fi) --output-directory=$(tmpfld)`));
        catch er 
            @show er 
        end
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)

Try:

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