Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set ping wait interval on OS X #25

Closed
thinkspill opened this issue Oct 22, 2015 · 3 comments
Closed

Unable to set ping wait interval on OS X #25

thinkspill opened this issue Oct 22, 2015 · 3 comments

Comments

@thinkspill
Copy link

Setting the interval with -i5 works with regular ping (5 seconds between pings), but the same flag passed to gping throws duplicated error messages:

[ ~ ]$ python3 --version
Python 3.5.0
[ ~ ]$ ping -i5 google.com
PING google.com (216.58.192.14): 56 data bytes
64 bytes from 216.58.192.14: icmp_seq=0 ttl=53 time=44.896 ms
64 bytes from 216.58.192.14: icmp_seq=1 ttl=53 time=36.484 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 36.484/40.690/44.896/4.206 ms
[ ~ ]$ gping -i5 google.com
usage: ping [-AaDdfnoQqRrv] [-b boundif] [-c count] [-G sweepmaxsize]
            [-g sweepminsize] [-h sweepincrsize] [-i wait] [−k trafficclass]
            [-l preload] [-M mask | time] [-m ttl] [-p pattern]
            [-S src_addr] [-s packetsize] [-t timeout][-W waittime] [-z tos]
            host
       ping [-AaDdfLnoQqRrv] [-b boundif] [-c count] [-I iface] [-i wait]
            [−k trafficclass] [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
[ ~ ]$
@orf
Copy link
Owner

orf commented Oct 23, 2015

Hi, currently only the first parameter is passed to the ping process (hence the error message). Thinking about it now that seems stupid, we might as well pass all gping arguments to the underlying ping process. I'll fix that later :)

@thinkspill
Copy link
Author

👍 Thanks!

I'm surprised graphical ping plotters are not more popular. They are fantastic for quickly determining if your internet connection problem is local or external, for those of us who need to worry about that sort of thing. :) Thanks for writing yours!

@ghost
Copy link

ghost commented Oct 24, 2015

@orf What about going the _"UNIX Way"_ ?

Instead of passing every argument to ping/gping you could let the user decide using a double-dash.
This way, you could also implement gping options (like being more verbose
or turning the colors off).

Example:

gping --verbose --no-color -- -i5

@orf orf mentioned this issue Oct 25, 2015
6 tasks
@orf orf closed this as completed Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants