-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgo
37 lines (27 loc) · 2.17 KB
/
go
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
location=`cd $1;pwd`
if [ -e "$location/T" ]
then
echo "Path $location is a DISSCO project."
else
echo ""
echo "Error: Project path is not valid."
echo "Could not find: $location/T"
echo ""
echo "Specify relative or absolute path to the DISSCO project:"
echo "./go ../myproject"
echo ""
exit
fi
cmoddir=`pwd`
rm -f $location/multi.log
rm -f $location/*multi*
rm -f $location/SoundFiles/*multi*
echo "Starting nodes..."
echo "cd $location;nohup nice $cmoddir/cmod ./ 0 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 1 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 2 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 3 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 4 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 5 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T luigi
echo "cd $location;nohup nice $cmoddir/cmod ./ 6 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 7 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 8 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 9 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 10 17 >> $location/multi.log 2> /dev/null < /dev/null & nohup nice $cmoddir/cmod ./ 11 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T ben
echo "cd $location;nohup nice $cmoddir/cmod ./ 12 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T herbert
echo "cd $location;nohup nice $cmoddir/cmod ./ 13 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T john
echo "cd $location;nohup nice $cmoddir/cmod ./ 14 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T sal
echo "cd $location;nohup nice $cmoddir/cmod ./ 15 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T pierre
echo "cd $location;nohup nice $cmoddir/cmod ./ 16 17 >> $location/multi.log 2> /dev/null < /dev/null & hostname; exit" | ssh -T edgard
./progress $location