Re: ss: Checking efficient analysis for network connections

From: Markus Elfring
Date: Sat Jun 01 2019 - 04:41:33 EST


> Multi-line output in ss makes it difficult to search for things with grep.

I became more concerned about efficient data processing for the
provided information. There are further software development possibilities
to consider, aren't there?

The chosen data formats influence the software situation considerably.

* Information is exported together with extra space characters.
Other field delimiters can occasionally be nicer.

* Regular expressions are useful to extract data from text lines.
But other programming interfaces are safer to work with data structures.
The mentioned program can be used to filter the provided input.
But if you would like to work with information from the filtered records,
you would need to repeat some data processing by the calling process
so that items will be converted into structured elements.
Would you like to avoid duplicate work?


I imagine then that it would be also nicer to perform filtering based on
configurable constraints at the data source directly.
How much can Linux help more in this software area?
How do you think about such ideas?

Regards,
Markus