summarylogtreecommitdiffstats
path: root/doomcube-feed
blob: 9d240847f87f2dc1f3a0f862ef28f8ced0f78770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

#[[ -n "$1" ]] && interval="$1" || interval="4"
interval=$(( $# ? ${1:-0} : 4))

while true; do

  ss -tun | sed -n '2,$s/.* \([0-9\.]*\):\([0-9]*\) *\([0-9\.]*\):\([0-9]*\)/\1 \3 \2/p'

  sleep "${interval}"

done