diff --git a/templates/sendtelegram-login.sh b/templates/sendtelegram-login.sh index f9454c5..cb96149 100644 --- a/templates/sendtelegram-login.sh +++ b/templates/sendtelegram-login.sh @@ -28,7 +28,7 @@ END fi SESSION=$(ps -ef -u "${USER}" | grep '[s]shd:.*@notty' \ - | awk '{$2=$3=$4=$6=$7=""; print $0}') + | grep -v 'sendmail.py'| awk '{$2=$3=$4=$6=$7=""; print $0}') if [ -n "${SESSION}" ]; then TXT_MSG=$(cat <<-END ${TXT_MSG}