News for hackers. Stuff that matters.
Re:Explain Shell by riquito on Monday December 02, 2013 @05:47PM (#6837170)
Or you may shorten your command

  ps -C someScript.sh -o pid= | xargs -I % /bin/kill -TERM -- -%
avoiding two pipes is also 1 femtosecond faster, and as an added bonus HN doesn't trigger the dreaded code scrollbars too!
Re:Explain Shell by d0m on Monday December 02, 2013 @06:21PM (#6837337)
This is the two best arguments I have ever seen comparing two piece of code! You totally convinced me.
Re:Explain Shell by marbu on Tuesday December 03, 2013 @07:40AM (#6839886)
You can shorten it even further with pkill or killall:

pkill ^someScript.sh$ --signal TERM

Either way pgrep is a nice command to learn about.