Archive for 十月, 2009

[Perl]刪除特定程式執行緒

#!/usr/bin/perl

$getlist = `ps aux|grep x1|grep x2`;
$getlist =~/\w+\s+(\d+)\s+*/;

`kill $1`;