Process killing script
Hello everybody:
I am running a software which usually leaves undesired processes running after progam shutdown, always containing the directory where the binaries running are placed. I usually kill them by
> ps aux | grep my-
owix 28346 0.0 0.6 72608 6788 ? S 17:24 0:00 /work/my-release/my_dir/installed/i686-slc3-gcc323-opt/bin/rc_empty_controller
owix 28347 0.0 0.6 93220 6948 ? S 17:24 0:00 /work/my-release/my_dir/installed/i686-slc3-gcc323-opt/bin/rc_empty_controller -n RootController
owix 28575 0.0 0.0 4772 680 pts/5 S 17:27 0:00 grep my-
and then:
> kill -9 28347 28346
Then I would like to have an script which kill all the processes belonging to a specific user (owix) and that contains in the description the "my-release" pattern.
Do you have any idea about how to do this? Thanks you very much. Cheers,
OWIX
|