Sample problem:
In a script, you need to find a Unix WebLogic process by user wluser and kill it.
Solution:
(as one line)
ps -fu wluser | grep weblogic.Name | grep -v grep |
awk '{print $2}' | xargs kill -9
The command grep -v grep will exclude the grep process that may result from grep weblogic.Name.
No comments:
Post a Comment