1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] How do I pipe a subprocess call to a text file?

Discussão em 'Python' iniciado por Stack, Setembro 14, 2025.

  1. Stack

    Stack Membro Participativo

    subprocess.call(["/home/myuser/run.sh", "/tmp/ad_xml", "/tmp/video_xml"])


    RIght now I have a script that I run. When I run it and it hits this line, it starts printing stuff because run.sh has prints in it.

    How do I pipe this to a text file also? (And also print, if possible)

    Continue reading...

Compartilhe esta Página