Quote:
Originally Posted by andrewysk
Code:
$ sudo watch 'ss -pn | tabulate -fplain'
|
You cannot do it like this. The
ss options
-H and
-O are crucial for any of these methods to work. Try
Code:
sudo watch 'ss -HOpn | tabulate -fplain'
and you'll see the difference.
Quote:
Originally Posted by andrewysk
As for the command with miller $mlr, error installing miller (both via pamac-manager and yay)
|
Look like intermittent errors to me. But I don't use Arch or its derivatives, so cannot comment on this.
Quote:
Code:
sudo watch 'ss -HOtulpn|tabulate -t" +"'
not working. no idea where's the problem.
|
This is a different program that just happens to be named the same as the one you installed. It's not available from Arch repositories. I provided the link to CPAN.
Quote:
method printf:
Code:
printf '%s %s %d %3d %-17s %9s %.32s\n' $(sudo ss -pn)
|
As I said, the
printf method requires manual adjustment of the format string for every combination of
ss options. Moreover, for many combinations further adjustments (e.g with sed) would be required. See what I mean:
Code:
watch 'printf "%s %s %d %3d %20.20s %-9d %s %-9d %.1s %.15s\n" $(sudo ss -HOpn|sed "y/:/ /;s/*/+/g;/ESTAB/!Q")'