I execute the ping command in python by opening a cmd window with the ping command using python's subprocess module.
For example:
import subprocess
p = subprocess.Popen('ping 127.0.0.1')
Afterwards I check if the output contains "Reply from 'ip':", to see if the ping was successful.
This works in all cases where the cmd is in english.
What can I do to check if a ping was successful on any cmd language?