----** Kill OS Processes with corresponding OS user**-------
Example:
ps -ef | grep applmgr| awk '{ print "kill -9 "$2 }'
ps -ef |grep ORACLE |grep -v grep |awk '{print $2}' > aa
ps -ef |grep LOCAL |grep NO |grep ERPDB |awk '{print $2}' >1
ps -ef |grep LOCAL |awk '{print $2}' >1
ps -ef |grep applmgr |grep -v grep |grep -v open |grep -v tns|awk '{print $2}' > aa
Example:
ps -ef | grep applmgr| awk '{ print "kill -9 "$2 }'
ps -ef |grep ORACLE |grep -v grep |awk '{print $2}' > aa
ps -ef |grep LOCAL |grep NO |grep ERPDB |awk '{print $2}' >1
ps -ef |grep LOCAL |awk '{print $2}' >1
ps -ef |grep applmgr |grep -v grep |grep -v open |grep -v tns|awk '{print $2}' > aa
Tags:
UNIX