Hello!
I have written a script that establishes an SSH Tunnel and does Port Forwarding from a local CYGWIN Shell ....
When I try to kill the tunnel by the PID, I get nothing ...
Does anyone know how CYGWIN handles PIDs in a local Shell?
PIDOF=$!
echo -e ""
echo -e "Port Forwarding ${red_back}${yellow_text}Active${norm_text}${norm_back}:"
while true
do
echo -e "Press Any Key to ${red_text}STOP${norm_text} Port Forwarding ..."
read kill
case $kill in
*) kill $PIDOF ;;
esac
done
;;
esac
I'm just getting an empty variable (kill has nothing to kill) .... since this is just a local shell and not a full fledged system, I was wondering if anyone knew how CYGWIN handles PIDs.