-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathouterr
32 lines (24 loc) · 872 Bytes
/
outerr
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
#!/bin/bash
PROJDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NETID=$(cat $PROJDIR/.netidtemp)
DOMAIN=utdallas.edu
#command line arguments
CONFIGPATH=$PROJDIR/config
CONFIG=$CONFIGPATH/$(cat $PROJDIR/.configtemp)
PROJDIRSCRIPT='$(echo $AOSMEROOT)'
REMOTEOUT=$PROJDIRSCRIPT/out
n=0
cat $CONFIG | sed -e "s/#.*//" | sed -e "/^\s*$/d" |
(
read i
nodes=$(echo $i | cut -f1 -d" ")
EXC=""
while [ $n -lt $nodes ]; do
EXC+="echo Kernel $n output:; echo; cat $REMOTEOUT/Kern$n.out 2>/dev/null; echo;"
EXC+="echo Kernel $n errors:; echo; cat $REMOTEOUT/Kern$n.err 2>/dev/null; echo;"
EXC+="echo App $n output:; echo; cat $REMOTEOUT/App$n.out 2>/dev/null; echo;"
EXC+="echo App $n errors:; echo; cat $REMOTEOUT/App$n.err 2>/dev/null; echo;"
n=$(($n + 1))
done
ssh $NETID@dc01.$DOMAIN "$EXC"
)