Produced by Araxis Merge on 4/11/2017 10:47:23 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | Tue Apr 11 15:47:23 2017 UTC | ||
2 | PS_PPS_Weblogic_Domain\install\domain_template.jar\bin | stopComponent.sh | Fri Oct 7 07:11:04 2016 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 0 | 0 |
Changed | 0 | 0 |
Inserted | 1 | 106 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | #!/bin/sh | |||||
2 | ||||||
3 | # WARNING: This file is create d by the C onfigurati on Wizard. | |||||
4 | # Any chan ges to thi s script m ay be lost when addi ng extensi ons to thi s configur ation. | |||||
5 | ||||||
6 | # --- Star t Function s --- | |||||
7 | ||||||
8 | usage() | |||||
9 | { | |||||
10 | ec ho "Usage: $1 {help} COMPONENT _NAME {sho wErrorStac k}" | |||||
11 | ec ho "Where: " | |||||
12 | ec ho " help - Optiona l. Show th is usage." | |||||
13 | ec ho " COMP ONENT_NAME - Require d. System Component name, only one name allowed" | |||||
14 | ec ho " show ErrorStack - Optiona l. Show er ror stack if provide d." | |||||
15 | } | |||||
16 | ||||||
17 | # --- End Functions --- | |||||
18 | ||||||
19 | if [ "$1" = "" ] ; t hen | |||||
20 | us age $0 | |||||
21 | ex it | |||||
22 | fi | |||||
23 | param="$(e cho $1 | t r -s '')" | |||||
24 | if [ "${pa ram}" = "" ] ; then | |||||
25 | us age $0 | |||||
26 | ex it | |||||
27 | fi | |||||
28 | ||||||
29 | ||||||
30 | if [ "$1" = "showErr orStack" ] ; then | |||||
31 | us age $0 | |||||
32 | ex it | |||||
33 | fi | |||||
34 | ||||||
35 | showErrorS tack="fals e" | |||||
36 | doUsage="f alse" | |||||
37 | while [ $# -gt 0 ] | |||||
38 | do | |||||
39 | ca se $1 in | |||||
40 | sh owErrorSta ck) | |||||
41 | show ErrorStack ="true" | |||||
42 | expo rt showErr orStack | |||||
43 | ;; | |||||
44 | he lp) | |||||
45 | doUs age="true" | |||||
46 | ;; | |||||
47 | *) | |||||
48 | if [ "${compon entName}" != "" ] ; then | |||||
49 | usage $0 | |||||
50 | exit | |||||
51 | fi | |||||
52 | comp onentName= "$1" | |||||
53 | expo rt compone ntName | |||||
54 | ;; | |||||
55 | es ac | |||||
56 | sh ift | |||||
57 | done | |||||
58 | ||||||
59 | ||||||
60 | if [ "${do Usage}" = "true" ] ; then | |||||
61 | us age $0 | |||||
62 | ex it | |||||
63 | fi | |||||
64 | ||||||
65 | WL_HOME="@ WL_HOME" | |||||
66 | ||||||
67 | DOMAIN_HOM E="@DOMAIN _HOME" | |||||
68 | ||||||
69 | if [ "${TM PDIR}" != "" ] ; the n | |||||
70 | PY _LOC="${TM PDIR}/stop Component. py" | |||||
71 | else | |||||
72 | PY _LOC="/tmp /stopCompo nent.py" | |||||
73 | fi | |||||
74 | ||||||
75 | ||||||
76 | umask 027 | |||||
77 | ||||||
78 | ||||||
79 | if [ "${sh owErrorSta ck}" = "fa lse" ] ; t hen | |||||
80 | ec ho "try:" >"${PY_LOC }" | |||||
81 | ec ho " stop ComponentI nternal('$ {component Name}', r' ${DOMAIN_H OME}')" >> "${PY_LOC} " | |||||
82 | ec ho " exit ()" >>"${P Y_LOC}" | |||||
83 | ec ho "except Exception ,e:" >>"${ PY_LOC}" | |||||
84 | ec ho " prin t 'Error:' , sys.exc_ info()[1]" >>"${PY_L OC}" | |||||
85 | ec ho " exit ()" >>"${P Y_LOC}" | |||||
86 | else | |||||
87 | ec ho "stopCo mponentInt ernal('${c omponentNa me}', r'${ DOMAIN_HOM E}')" >"${ PY_LOC}" | |||||
88 | ec ho "exit() " >>"${PY_ LOC}" | |||||
89 | fi | |||||
90 | ||||||
91 | echo "Stop ping Syste m Componen t ${compon entName} . .." | |||||
92 | ||||||
93 | # Using WL ST... | |||||
94 | ||||||
95 | ${WL_HOME} /../oracle _common/co mmon/bin/w lst.sh -i ${PY_LOC} 2>&1 | |||||
96 | ||||||
97 | if [ -f ${ PY_LOC} ] ; then | |||||
98 | ||||||
99 | rm -f ${PY_L OC} | |||||
100 | ||||||
101 | fi | |||||
102 | ||||||
103 | echo "Done " | |||||
104 | ||||||
105 | exit | |||||
106 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.