I keep running these two commands over and over:
$ ps aux | grep php | grep -v grep
www-data 3663 100 14.8 328620 304900 ? R 12:56 0:54 php /home/jason/projects/mcif/./symfony import:process --id=91
jason@gob:~/projects/mcif$ sudo kill 3663
Is there a quick and easy way to just grab the pid and kill that? The closest I've come is this:
$ ps aux | grep php | egrep -o ' [0-9]+ ' | head -n1
3836
But I don't know how to pipe that through kill
.