08 August 2009

Howto: Remove processes in Unix by searching their names

I sometimes have the situation where I am left with some stuck processes from previous sessions. I'm sure this could be done better by the application, but it's not in this case. I therefore have the following command line (bash on Solaris) that solves my problem:

$ ps -ef | grep {myuserid} | grep {procname in ps} | awk '{ print $2 }' | xargs -l1 kill -9

Might be of use for anybody out there.

Should Software Architects write code?

Gregor answers this nicely in https://youtu.be/31qcPwAv8Zw . Yes, they should. But not to create production code, but to grasp the idea and ...