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] Python Terminal output read from ping

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

  1. Stack

    Stack Membro Participativo

    import subprocess


    command = "ping 10.1.0.1"
    result = subprocess.check_output(command, shell=True, text=True)
    print(result)



    I want to read in the ping result and process it further, but unfortunately I can't even output the result.

    Continue reading...

Compartilhe esta Página