#!/bin/sh ps aux | grep cnpkmodule | perl -nle '/[^\s]*\s*(\d*)\s*([^\s]*\s*){7}(\d*)/; if ($3 > 60) {kill $1; print "cnpkmodule was killed"}'