Use pkill -f, which matches the pattern for any part of the command line
pkill -f my_pattern
Related Posts
grub boot error : “symbol ‘grub_calloc’ not found
After updating grub2 and rebooting, my server does not boot: Booting from Hard Disk 0...…
How to install latest PHP 5.4.x on Ubuntu 12
http://www.dev-metal.com/how-to-install-latest-php-5-4-x-on-ubuntu-12-04-lts-precise-pangolin/