Friday, August 7, 2015

OS process find and Kill using AWK


ps -ef | grep -i oracleDLN10601 | grep -i "LOCAL=NO" | grep -i Aug03 | awk '{print $2}'
kill -9 `ps -ef | grep -i oracleDLN10601 | grep -i "LOCAL=NO" | grep -i Aug04 | awk '{print $2}'`

No comments:

Post a Comment