-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·45 lines (31 loc) · 967 Bytes
/
test.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
#!/bin/zsh
echo "OPENING STUFF"
cd /home/carson/proj/ek/z-bomb
konsole -e ./superserver.py &
konsole -e ./displayHandler.py &
konsole -e ./magnetHandler.py &
konsole -e ./speakerHandler.py &
konsole -e ./timerHandler.py &
konsole -e ./doorSensorHandler.py &
konsole -e ./keypadHandler.py &
cd /home/carson/.local/bin
echo "PRESS TO OPEN DOOR"
read -r -s
echo "OPENING DOOR"
./zerorpc tcp://127.0.0.1:65534 open
echo "PRESS TO INPUT INCORRECT CODE"
read -r -s
echo "INPUT INCORRECT CODE"
./zerorpc tcp://127.0.0.1:65531 keys 1
./zerorpc tcp://127.0.0.1:65531 keys 2
./zerorpc tcp://127.0.0.1:65531 keys 3
./zerorpc tcp://127.0.0.1:65531 keys 4
./zerorpc tcp://127.0.0.1:65531 keys '#'
echo "PRESS TO INPUT CORRECT CODE"
read -r -s
echo "INPUT CORRECT CODE"
./zerorpc tcp://127.0.0.1:65531 keys 0
./zerorpc tcp://127.0.0.1:65531 keys 0
./zerorpc tcp://127.0.0.1:65531 keys 0
./zerorpc tcp://127.0.0.1:65531 keys 0
./zerorpc tcp://127.0.0.1:65531 keys '#'