Dec-05-2018, 03:42 PM
Thanks that works good. i now get the output from windows command promt in python.
What could be the best way to distinguish between the two different result (ping successful,ping not successful) when i get the results in text. i was thinking i could identify a word or number that is only in the successful or not successful ping result and make a if statement based on that. my problem is how i can search the text result and identify that specific word with python.
Any thoughts?
What could be the best way to distinguish between the two different result (ping successful,ping not successful) when i get the results in text. i was thinking i could identify a word or number that is only in the successful or not successful ping result and make a if statement based on that. my problem is how i can search the text result and identify that specific word with python.
Any thoughts?