-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-simulation.sh
More file actions
executable file
·33 lines (22 loc) · 1.83 KB
/
Copy pathstart-simulation.sh
File metadata and controls
executable file
·33 lines (22 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
###############################################################################################
# #
# Launch ServerFusionManager on localhost:8888 #
# #
# Launch 4 Servers on localhost:7777, localhost:7778, localhost:7779, localhost:7780 #
# #
# Connect 4 clients (1 client / server) #
# #
###############################################################################################
# ServerFusionManager
gnome-terminal -- java -jar server-fusion-manager/build/libs/ServerFusionManager-0.1.0.jar 8888
# ServerChatFusion
gnome-terminal -- java -jar server/build/libs/ServerChatFusion-0.1.0.jar Server1 7777 localhost 8888
gnome-terminal -- java -jar server/build/libs/ServerChatFusion-0.1.0.jar Server2 7778 localhost 8888
gnome-terminal -- java -jar server/build/libs/ServerChatFusion-0.1.0.jar Server3 7779 localhost 8888
gnome-terminal -- java -jar server/build/libs/ServerChatFusion-0.1.0.jar Server4 7780 localhost 8888
# ClientChatFusion
gnome-terminal -- java -jar client/build/libs/ClientChatFusion-0.1.0.jar clientA localhost 7777 /dev/null
gnome-terminal -- java -jar client/build/libs/ClientChatFusion-0.1.0.jar clientB localhost 7778 /dev/null
gnome-terminal -- java -jar client/build/libs/ClientChatFusion-0.1.0.jar clientC localhost 7779 /dev/null
gnome-terminal -- java -jar client/build/libs/ClientChatFusion-0.1.0.jar clientD localhost 7780 /dev/null