#!/usr/bin/perl $help = <; close(RSLT); # print join("",@results); @found = grep { /$name\.$suffix/ } @results; if (@found) { ($owner, $pid, $rest) = split(" ",$found[0]); $cmd = "kill $pid"; system($cmd); print localtime() . ", Killed $name.$suffix, pid=$pid.\n"; } else { # print localtime() . ", $name.$suffix process not found!...\n"; } }