Python Forum
How to print the IP which shows destination host unreachable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to print the IP which shows destination host unreachable
#3
Hello!

You have to check which system you run the script and do the ping the right way. On Windows pings counting option key is -n but -c in Linux

See: https://docs.python.org/2/library/sys.html#sys.platform
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: How to print the IP which shows destination host unreachable - by wavic - Jan-11-2017, 10:11 AM

Forum Jump:

User Panel Messages

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