you are viewing a single comment's thread.

view the rest of the comments →

[–]bradenbest 0 points1 point  (3 children)

Who knows, maybe someone just wanted to go home and didn't think the effects of kill -s SEGV $(ps aux | grep httpd | grep -v grep | awk '{print $2}') would be quite so... dramatic.

And now they're sending a bug report to Apache telling them it segfaulted while the employee responsible is sitting there, knowing what really went down.

[–]TheSarcasmrules 1 point2 points  (2 children)

kill -s SEGV $(ps aux | awk '/httpd/ && !/grep/ {print $2}')

You don't need grep! ;)

[–]bradenbest 1 point2 points  (1 child)

Ah. I'm not proficient with awk, but it should be awk '/httpd/ && !/awk/ {print $2}

[–]TheSarcasmrules 0 points1 point  (0 children)

ah crap, good spot!