You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
224 B

#!/bin/bash
PID=`ps -ef | grep echo-sshd-server | grep -v grep | awk '{print $2}'`
if [ -z "$PID" ]
then
echo "echo-sshd-server is already dead! $PID"
else
sudo kill -9 $PID
echo "killed echo-sshd-server pid: $PID"
fi