blob: 4934a8b4d5df2f42e512b7b9e070c62436de2dde (
plain)
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
|
#! /bin/sh
cd ~/jenkins
#scp chuckslave@jogamp.org:/srv/jenkins/war/WEB-INF/slave.jar .
curl -O https://jogamp.org/chuck/jnlpJars/agent.jar
function connect_1 {
sshpid=
while true ; do
if [ ! -z "$sshpid" ] ; then
kill -9 $sshpid
fi
ssh -o "ServerAliveInterval 30" -o "ServerAliveCountMax 5" -o "TCPKeepAlive yes" chuckslave@jogamp.org -L 6010:localhost:5555 -N &
sshpid=$!
./win64-nvgtx460-win7-jogamp-x32-sgothel-010.bat
done
}
function connect_2 {
sshpid=
while true ; do
if [ ! -z "$sshpid" ] ; then
kill -9 $sshpid
fi
ssh -o "ServerAliveInterval 30" -o "ServerAliveCountMax 5" -o "TCPKeepAlive yes" chuckslave@jogamp.org -L 6011:localhost:5555 -N &
sshpid=$!
./win64-nvgtx460-win7-jogamp-x64-sgothel-011.bat
done
}
#
#connect_1 > win64-nvgtx460-win7-jogamp-x32-sgothel-010.log 2>&1 &
#disown $!
#
connect_2 > win64-nvgtx460-win7-jogamp-x64-sgothel-011.log 2>&1 &
disown $!
|