use kill with awk

kill `ps -ef | awk ‘{if($11~/WorkOrderProcessor/) print$2}’`

Leave a Reply