-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·29 lines (23 loc) · 1.14 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
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
#print $SOURCE
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
#print $DIR
make
cd bin; java -cp ".:../lib/*" cloudStorage.app.DeleteLocalFiles
gnome-terminal --working-directory=$DIR/bin -e 'java -cp ".:../lib/*" funct.pki.PKIServerApp'
sleep 1
gnome-terminal --working-directory=$DIR/bin -e 'java -cp ".:../lib/*" cloudStorage.app.ServerRegisterApp'
sleep 1
gnome-terminal --working-directory=$DIR/bin -e 'java -cp ".:../lib/*" cloudStorage.app.ServerApp'
sleep 1
gnome-terminal --working-directory=$DIR/bin -e 'java -cp ".:../lib/*" cloudStorage.app.UserRegisterApp 101'
sleep 1
gnome-terminal --working-directory=$DIR/bin -e 'java -cp ".:../lib/*" cloudStorage.app.UserGUI'
# if no other node processes are active, to close all these
# gnome-terminal is enough to do 'killall node'