text: while true 
  do 
  TESTVAR=$(ssh root@$POWERMASTERIP -i /home/danielsc/.ssh/id_aws kubectl get pod 
  appmongo-ibm-mongodb-dev -o custom-columns=:{status.phase} -n default 
  2>>/dev/null) 
  if [ $? -eq 0 ] 
   then 
   if [ $(cat /proc/"$(ssh -S /home/danielsc/mongo/mongoconnect -O check 
  localhost 2>&1 |cut -d= -f2 | sed 's/)//')"/cmdline|cut -d: -f2) == 
  "$POWERMASTERIP" ] 
   then 
   TESTVAR=$(echo -n $TESTVAR) 
   echo "Pod status is $TESTVAR" 
   echo "Tunnel already connected to IBM correctly" 
   else 
   ssh -S mongoconnect -O exit -p 443 localhost 2>>/dev/null 
   TESTVAR=$(echo -n $TESTVAR) 
   echo "Pod status is $TESTVAR" 
   ssh -M -S mongoconnect -fNT -L 27017:$POWERMASTERIP:32767 
  localhost 
   echo "Tunneled to MongoDB running on IBM" 
   fi 
  fi 