Comments (2)
I think in this case it is (unfortunately) working as intended. If you call ping
on that host, would it print anything? If it doesn't print anything, then prettyping
can't print anything either.
A "solution" would be to pass some parameter that would make the underlying ping print a timeout message or something. (Like ping -W <timeout>
on Linux, no idea about Mac.) Or try using a different ping implementation --pingbin …
. (I vaguely remember oping
printing messages in such cases, but I may be wrong.)
Sidenote: prettyping
can't implement a timeout, it must come from the underlying ping
. And the timeout can be quite long, as there is record of some ping responses taking almost two hours. Okay, this is an extreme case, and I don't think anyone actually uses IPoAC, but it illustrates the point.
Since I think in this case there is nothing to be done, I'm closing this issue. Feel free to reopen if you have any further information about it.
from prettyping.
Ping works properly and gives me live updates:
$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
^C
--- localhost ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss
After each 'request timeout' it prints the line. I'm afraid it may still be an issue in prettyping?
/edit
It's certainly a bit weird. I don't understand why it should act different with the request timeout responses vs. normal responses. Ping always prints a line. For some reasons things are not flushing correctly for the timeout case. DOesn't make much sense. But it acts the same when piping ping to cat (so no prettyping involved at all). On Linux you probably could insert a "stdbuf", I think, but that's not available by default with Mac OS X.
from prettyping.
Related Issues (20)
- Getting the pid of cmd_a in a pipelined command group
- curl command on github pages returns html HOT 1
- Occasional newline after dropped packet on OS X HOT 2
- [feature request] customizable max value for legend
- prettyping does not handle Destination Host Unreachable output from ping
- minor contrib/suggestion: timestamp HOT 1
- Possibility to turn off statistics HOT 1
- dropped packets dont stand out enough
- Add --version option? HOT 2
- Option for "large to small" instead of "small to large" HOT 2
- Handle "ping: sendto: No route to host" HOT 2
- Memory leak HOT 1
- Prettyping -6 calls ping6 but newer distributions uses ping -6 and have no ping6 binary
- Sample ICMP Denied
- Feature: show percentages with 1dp
- How are you ?
- ping:7: fork failed: resource temporarily unavailable HOT 2
- Just Ping, Not Pretty HOT 1
- Doesn't handle duplicate responses
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettyping.