File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ then you can copy the entop script to a bin directory
20
20
## Usage
21
21
To run entop make sure you have Erlang installed, cecho and entop libraries installed, and that the script is in your path.
22
22
23
- Usage: ./entop <TARGETNODE> <COOKIE>
23
+ Usage: ./entop <TARGETNODE> [ <COOKIE>]
24
24
25
25
### An example of how you run entop:
26
26
Original file line number Diff line number Diff line change 26
26
# #==============================================================================
27
27
28
28
# # Shell script for running entop. See the function usage() for instructions.
29
- TARGETNODE=
30
- COOKIE=
31
29
32
30
function usage() {
33
- echo -e " Usage: ./entop <TARGETNODE> <COOKIE>"
31
+ echo -e " Usage: ./entop <TARGETNODE> [ <COOKIE>] "
34
32
}
35
33
36
34
if [[ $# -lt 1 ]]; then
41
39
TARGETNODE=$1
42
40
shift
43
41
44
- COOKIE=$1
42
+ COOKIE=${1-undefined}
45
43
shift
46
44
47
45
if [[ -d _build ]] ; then
51
49
fi
52
50
53
51
erl -noinput -hidden $PATHS +A 20 +Bc \
54
- -eval " entop:main(['${TARGETNODE} ','${COOKIE} '])" $@
52
+ -eval " entop:main(['${TARGETNODE} ','${COOKIE} ']). " " $@ "
55
53
56
54
CODE=$?
57
55
if [[ $CODE -eq 101 ]]; then
You can’t perform that action at this time.
0 commit comments