strange bug. if run as exectuive shell script get_tunnel_ports.sh has not enough permission. it has if executed as sh /usr/local/bin/get_tunnel_ports.sh. hm