Skip to content

Commit

Permalink
scripts/ss_iterate.sh: Add extra newline after ss output
Browse files Browse the repository at this point in the history
A bug in certain versions of 'ss' causes its output to miss a newline at
the end. While this has been fixed in upstream iproute2, there are versions
of ss in the wild with this bug. So add an extra newline after the ss
output in ss_iterate.sh; parsing of the output is entirely regex-based, so
an extra newline doesn't hurt.

Fixes #204.

Reported-by: Olivier Tilmans <olivier.tilmans@nokia-bell-labs.com>
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
  • Loading branch information
tohojo committed Apr 26, 2020
1 parent b8165da commit 7cd5c3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flent/scripts/ss_iterate.sh
Expand Up @@ -43,6 +43,7 @@ fi
command_string=$(cat <<EOF
for i in \$(seq $count); do
ss -t -i -p -n state connected "dst $target $filter"
echo ''
date '+Time: %s.%N';
echo "---";
sleep $interval || exit 1;
Expand Down

0 comments on commit 7cd5c3a

Please sign in to comment.