ps -ef | grep python3 | grep -v grep | awk '{print "kill "$2}' >& .tmp bash .tmp