Python Forum
Ping command using python 3.6.5
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ping command using python 3.6.5
#4
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?
Reply


Messages In This Thread
Ping command using python 3.6.5 - by Martin2998 - Dec-04-2018, 09:58 PM
RE: Ping command using python 3.6.5 - by nilamo - Dec-04-2018, 10:45 PM
RE: Ping command using python 3.6.5 - by snippsat - Dec-05-2018, 12:40 AM
RE: Ping command using python 3.6.5 - by Martin2998 - Dec-05-2018, 03:42 PM
RE: Ping command using python 3.6.5 - by wavic - Dec-05-2018, 06:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need some guidance on a script to ping a list of ip's cubangt 11 7,502 Aug-10-2023, 02:39 PM
Last Post: snippsat
  non-stop ping script kucingkembar 1 2,232 Aug-23-2022, 06:29 AM
Last Post: menator01
  How to run parallel command (same command -ping) korenron 3 3,916 Dec-12-2020, 11:04 AM
Last Post: palladium
  Create a program that PING a list of IPs skaailet 7 10,468 Mar-26-2020, 10:46 PM
Last Post: snippsat
  ping with output jacklee26 1 6,250 Nov-28-2019, 01:01 PM
Last Post: Axel_Erfurt
  PING PONG GAME akea 0 6,471 May-08-2019, 04:30 PM
Last Post: akea
  Ping Code Problem MTom5 1 3,321 Sep-04-2018, 09:58 PM
Last Post: MTom5
  ping and pong run both well sylas 1 3,955 Sep-24-2017, 05:14 PM
Last Post: sylas
  Ping Sweep help The501stOfNoobPy 5 8,692 Jun-26-2017, 10:22 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020