Java???Linux?·??????????????????
???????????? ???????[ 2014/9/10 10:57:00 ] ????????Linux Java ??????
????4??Shutdown???
1 public class ShutDown {
2 public static void main(String[] args) throws Exception {
3 Configure configure = new Configure();
4 System.out.println("Shutdown Guards..");
5 for (int i = 0; i < 3; i++) {
6 Process p = Runtime.getRuntime().exec("jps -l");
7 BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
8 String line;
9 while ((line = reader.readLine()) != null) {
10 if (line.toLowerCase().contains("Guard".toLowerCase())) {
11 String[] strings = line.split("\s{1??}");
12 int pid = Integer.parseInt(strings[0]);
13 Runtime.getRuntime().exec(configure.getKillcmd() + " " + pid);
14 }
15 }
16 p.waitFor();
17 reader.close();
18 p.destroy();
19 Thread.sleep(2000);
20 }
21 System.out.println("Guards is shutdown");
22 }
23 }
????5??GuardB??GuardA????
?????塢?????????
???????????У?guard_demo
????????????http://pan.baidu.com/s/1bn1Y6BX
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????