skip to Main Content

pkill doesn't kill process – CentOS

I have a process running called productivity [root@productivity ~]# netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1009514/sshd tcp6 0 0 :::8443 :::* LISTEN 2803472/productivit…

VIEW QUESTION

tail -f | grep in if statement – Debian

I'm running from bash script something like $(command -options)& export SC_PID=$! if tail -f <log_filename.txt> | grep --line-buffered -E "(some expression)"; then kill -STOP $SC_PID fi but it's writing "(some expression)" in the command line output instead of killing the…

VIEW QUESTION
Back To Top
Search