Python Forum
looking for code that determines which ping command to use
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
looking for code that determines which ping command to use
#11
I was going to offer Scapy but I know that @Scaperen prefers not to use additional modules and I didn't do it. The benefit is that with Scapy you get all of the ping respond not the ping's command interpretation.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#12
(May-14-2018, 09:09 AM)DeaD_EyE Wrote: I'm always asking myself: Is this a good Idea to rely on the OS.
I learned, sometimes it's better to have the implementation in the language itself as calling outside foreign programs.
But sometimes it's very cheap just to call a program, which does the work for you.

Maybe you want to have a own implementation of ping in your utilities package: https://github.com/samuel/python-ping/bl...er/ping.py
seems like a better alternative to me. i hope that implementation itself has no OS issues.

if it's small enough Python code, i could insert it into my code rather than import a module that may also need to be installed.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  script wanted: ping and wait Skaperen 0 2,301 Dec-10-2017, 05:16 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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