comparison gpf/BIN/debug/pco_kill.bat @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 @echo off
2 setlocal
3 rem -----------------------------------------------------------------------------
4 rem Project : PCO
5 rem Modul :
6 rem -----------------------------------------------------------------------------
7 rem Copyright 2004 Texas Instruments Deutschland GmbH
8 rem All rights reserved.
9 rem
10 rem This file is confidential and a trade secret of Texas
11 rem Instruments Berlin, AG
12 rem The receipt of or possession of this file does not convey
13 rem any rights to reproduce or disclose its contents or to
14 rem manufacture, use, or sell anything it may describe, in
15 rem whole, or in part, without the specific written consent of
16 rem Texas Instruments Berlin, AG.
17 rem -----------------------------------------------------------------------------
18 rem | Purpose : general depending application killer
19 rem -----------------------------------------------------------------------------
20
21 set PATH=%PATH%;..\tools\bin;..\..\tools\bin\debug;..\..\tools\bin
22
23
24 REM Trying to close depending applications
25 set one_closed=0
26 echo Trying to close pco controllers ...
27 closewin pco_ctrl 2>nul | grep sent
28 if %? == 0 set one_closed=1
29 closewin pcoc 2>nul | grep sent
30 if %? == 0 set one_closed=1
31
32 echo Trying to close pco server ...
33 closewin pco_srv 2>nul | grep sent
34 if %? == 0 set one_closed=1
35 closewin pco_minisrv 2>nul | grep sent
36 if %? == 0 set one_closed=1
37 closewin pcod 2>nul | grep sent
38 if %? == 0 set one_closed=1
39
40 echo Trying to close pco viewers ...
41 closewin pco_view 2>nul | grep sent
42 if %? == 0 set one_closed=1
43 closewin pco_miniview 2>nul | grep sent
44 if %? == 0 set one_closed=1
45 closewin pco_demoview 2>nul | grep sent
46 if %? == 0 set one_closed=1
47
48 echo Trying to close testinterface ...
49 closewin tst 2>nul | grep sent
50 if %? == 0 set one_closed=1
51
52 echo Trying to close cms.exe ...
53 closewin cms 2>nul | grep sent
54 if %? == 0 set one_closed=1
55
56 echo Trying to close xPanel ...
57 closewin xpanel 2>nul | grep sent
58 if %? == 0 set one_closed=1
59
60 echo Trying to close EMW ...
61 closewin emw 2>nul | grep sent
62 if %? == 0 set one_closed=1
63
64 echo Trying to close tcgen ...
65 closewin tcgen 2>nul | grep sent
66 if %? == 0 set one_closed=1
67
68 echo Trying to close TraceMultiplexer ...
69 closewin TraceMultiplexer 2>nul | grep sent
70 if %? == 0 set one_closed=1
71
72 if %one_closed% == 0 goto kill
73
74 REM give applications the chance to exit normally
75 echo.
76 echo Waiting for applications to shutdown normally ...
77 delay 5
78
79 :kill
80 echo.
81 REM trying to kill depending applications
82 echo Killing pco controllers ...
83 pkill pco_ctrl | grep Killed
84 pkill pcoc | grep Killed
85
86 echo Killing pco server ...
87 pkill pco_srv | grep Killed
88 pkill pco_minisrv | grep Killed
89 pkill pcod | grep Killed
90
91 echo Killing pco viewers ...
92 pkill pco_view | grep Killed
93 pkill pco_miniview | grep Killed
94
95 echo Killing testinterface ...
96 pkill tst | grep Killed
97
98 echo Killing cms.exe ...
99 pkill cms | grep Killed
100
101 echo Killing xPanel ...
102 pkill xpanel | grep Killed
103
104 echo Killing EMW ...
105 pkill emw | grep Killed
106
107 echo Killing tcgen ...
108 pkill tcgen | grep Killed
109
110 echo Killing TraceMultiplexer ...
111 pkill TraceMultiplexer | grep Killed
112
113 :end
114 endlocal