This repository has been archived by the owner on Sep 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·96 lines (74 loc) · 4.26 KB
/
run.sh
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
echo -e $TEXT_RED
echo ' ``::+o+ss///--` `--///ss+o+::``
:/sdddNmmmhmddNdNmmo+. .+ommNmNmdmddmmNmdds/:
-MNhhyssooooooosossymmmo` `oNmdhssosooooooossshhNM-
/MNyoooooooooooooooooohMy`yMhoooooooooooooooooosNM/
.MNhoooooosyyysoooooooohMdMdoooooooossyysooooooyNM.
sMmsoooooooosyhhyooooooMMMsoooooshhysoooooooosdMs
`hMdsooooooooooshddyosdMMMmsoshdhsoooooooooosdMh`
`hNmsooooooooooooyNNNMMMMMNmNhsooooooooooosdNh`
`:mMdyoooooooooosNMMMMMMMMMNyooooooooooshNm:`
.:hNmhhysssshmMMMMMMMMMMMMMmhysssshhmNh:. `````````
.sNMMNmmNNMMMNmddhhhhdmNMMMNNNNNMMNs. -///////:
.sNNmdhhyyhmMNdhyyyyys+yyhdNNhhhhhdmNMNs. `/+++++/
/NMdhyyyyhdNMMdyyyyyys+++yyydMNdhyyyyhdNMN/ ./+++/++/
.NMhyyyyhmNMMMMMmdhhys++++shdNMMMNmhyyyyhMMd/++++/.-//
oMNyyhdmMMMMNNmNNMMNy++++++mmmdmmNMMmdhyydy++++/- `.
-+dNdmNMMMmhhyyyyyhdh+++++++oyyyyyyhdNMNms+++++:`
./+++NMMMMmhyyyyyyyyys+++++++++syyyyyyyydms++++oh/
:+++++oNMMmyyyyyyyyyys++++oN+++++yyyyyyyyo+++++sdMMd.
./+++++++yMMhyyyyyyyyys++++oNMy++++oyyyyys+++++oyyyhNMN.
`:+++++s++++dNyyyyyyyyys++++oNMMNo++++yyyy+++++omhyyyyhMMh
-/++++syyo++++Ndyyyyyyys++++oNMMMMm++++oyo+++++yMMdyyyyhMMN
`/++++oNmyyy++++oNdhyyyys++++oNMNNNMMh+++++++++smMMMNyyyyhMMd
-/+++/.-NMdyyy++++yMMNmdy+++++hhhhhhhhdo++++++omMMMMMMdyyhNMN-
./+++/- -mMmmNd++++dMMMm+++++yyyyyyyyyyy+++++hMMMNmdhdNmmMMm-
`:/+++:` `NMMNho++++mMm+++++yyyyyyyyyyyyo++yNMMmhhyyyyhMMMN`
````` +MMmyy++++oy+++++yyyyyyyyyyyyyyohMMmhyyyyyyyymMM+
hMmyyy++++++++omhyyyyyyyyyyyyyyNMmhyyyyyyyyyNMh
-MMdyys+++++++mMNhyyyyyyyyyyyhmMNyyyyyyyyyydMM-
+NMdhyo+++++yNMMMNdhhhhhhhdmNMMdyyyyyyyyhdMN+
-hMNdh++++yhNMMMMMMNNNNNMMMMMMdyyyyyyhdNMh-
`:smNd++dmNMMMNNmdddddddmmNMMMmmdmmNNms:`
`-++dMMMMNhhyyyyyyyyyyyhhMMMMMNd+-`
-+ymNMmhyyyyyyyyyyhhmMNmy+-
`-omNNmdhhhhhdmNNdo-`
`:ohmmmmmdyo/.
``..`
'
echo -e $TEXT_RESET
echo -e $TEXT_RED
echo 'System is getting fired up'
echo -e $TEXT_RESET
echo -e $TEXT_RED
echo 'Waiting for 2 seconds.....'
echo -e $TEXT_RESET
sleep 2
echo -e $TEXT_RED
echo 'Runnig Server'
echo -e $TEXT_RESET
cd "src/server/"
wait 1
./runserver.sh &
echo -e $TEXT_RED
echo 'Waiting for 2 seconds.....'
echo -e $TEXT_RESET
sleep 2
echo -e $TEXT_RED
echo 'Runnig GUI'
echo -e $TEXT_RESET
python3 '/home/blackfalcon/pi-exchange/src/gui/gui-v0.2.py'&
echo -e $TEXT_RED
echo 'Waiting for 2 seconds.....'
echo -e $TEXT_RESET
sleep 2
cd "../"
java -jar bot.jar&
echo -e $TEXT_RED
echo 'Runnig 1 instance for Bot'
echo -e $TEXT_RESET
sleep 1
echo -e $TEXT_RED
echo 'Happy trading'
echo -e $TEXT_RESET