From 204283417d008f7953291a2423d4c962cbe3928d Mon Sep 17 00:00:00 2001 From: Gardais Jeremy Date: Mon, 30 Nov 2015 10:11:44 +0100 Subject: [PATCH] =?UTF-8?q?ldap1=5Fconnection:=20add=20a=20white=20space?= =?UTF-8?q?=20after=20the=20port=20number=20(389)=20to=20avoid=20ports=20l?= =?UTF-8?q?ike=20"38965"=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ldap1_connection.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldap1_connection.sh b/ldap1_connection.sh index 4ea4843..f0562e2 100755 --- a/ldap1_connection.sh +++ b/ldap1_connection.sh @@ -7,13 +7,13 @@ # List LDAP connections without: # LISTEN # 129.20.123.1 server -ss_cmd=$(ss -laputen | grep ":389" | grep -v 129.20.123.1 | grep -v LISTEN) +ss_cmd=$(ss -laputen | grep ":389 " | grep -v 129.20.123.1 | grep -v LISTEN) # email recipient mail_recip="jeremy.gardais@univ-rennes1.fr" if [ "${ss_cmd}" ]; then - ss -laputen | grep ":389" | grep -v 129.20.123.1 | grep -v LISTEN | mail -s "LDAP1 connections" "${mail_recip}" + ss -laputen | grep ":389 " | grep -v 129.20.123.1 | grep -v LISTEN | mail -s "LDAP1 connections" "${mail_recip}" fi exit 0