1 |
janjust |
2553 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
SOCAT_HOST=${1:-ui.grid.sara.nl:24100} |
4 |
|
|
chmod 755 ./socat |
5 |
|
|
#./socat -d -d EXEC:/bin/bash,login,pty,echo=0,setsid,stderr,raw OPENSSL:$SOCAT_HOST,proxy=$X509_USER_PROXY,capath=/etc/grid-security/certificates/ |
6 |
|
|
|
7 |
|
|
host=`hostname -f` |
8 |
|
|
echo "host=$host" |
9 |
|
|
|
10 |
|
|
if [ "${host}" = "tbn09.nikhef.nl" ] |
11 |
|
|
then |
12 |
|
|
./socat -d EXEC:/bin/bash,login,pty,ctty,sighup,sigint,sigquit,stderr,setsid OPENSSL:$SOCAT_HOST,proxy=$X509_USER_PROXY,capath=/etc/grid-security/certificates/ |
13 |
|
|
fi |
14 |
|
|
|