|
 |
栏目导栏 |
|
| |
|
|
|
|
 |
资料搜索 |
|
| |
|
|
|
|
 |
热门文章 |
|
| |
|
|
|
|
 |
最新文章 |
|
| |
|
|
|
| |
| |
|
|
|
| |
| windows平台下根据可执行文件名杀掉进程的perl代码段 |
|
@ProcessLines = `qprocess.exe | grep parser.exe`; chRLinux联盟 while(scalar(@ProcessLines) > 0) chRLinux联盟 { chRLinux联盟 foreach $pl (@ProcessLines) chRLinux联盟 { chRLinux联盟 print $pl; chRLinux联盟 $pl =~ m/\S+\s+\S+\s+[0-9]+\s+([0-9]+)\s+\S+/; chRLinux联盟 $pid = $1; chRLinux联盟 print $pid."\n"; chRLinux联盟 if(kill 0 => $pid) chRLinux联盟 { chRLinux联盟 print "i should terminate:".$pid."\n"; chRLinux联盟 $CommandLine = "ntsd -c q -p ".$pid."&>TEMP.TXT"; chRLinux联盟 print $CommandLine."\n"; chRLinux联盟 `$CommandLine`; chRLinux联盟 $ReturnValue = 1; chRLinux联盟 } chRLinux联盟 } chRLinux联盟 @ProcessLines = `qprocess.exe | grep parser.exe`; chRLinux联盟 }
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论 |
|
|
|
|
|