SyntaxFix
Write A Post
Hire A Developer
Questions
This works good for me.
PID=`ps -eaf | grep syncapp | grep -v grep | awk '{print $2}'` if [[ "" != "$PID" ]]; then echo "killing $PID" kill -9 $PID fi