antirez / antirez/hping

Statistics Summary Output to Stderr, why?

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.7k
Forks
364
PR merge metrics
No merged PRs in 30d

Description

First, fantastic utility, it has come in great handy!

I've been invoking hping in a context, where I do two things:
capture both the Stdout where each packet result is logged
and
capture statistics of the entire set of packets.

I noticed hping's statistics are piped to stderr, and for a point of comparison I checked that Mac OS X's `ping` logs the summary at the end of Stdout.
So I became curious, whether there's a specific design motivation for logging statistics on Stderr rather than at the end of Stdout? :)

https://github.com/antirez/hping/blob/master/statistics.c#L32-L39

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.