|
|
@ -553,6 +553,10 @@ if [ "X$use_ssh" = "X1" ]; then
|
|
|
|
$ssh -x -f -p $ssh_port $targ $C $ssh_redir $ssh_args $ssh_host "$ssh_cmd" > $tport
|
|
|
|
$ssh -x -f -p $ssh_port $targ $C $ssh_redir $ssh_args $ssh_host "$ssh_cmd" > $tport
|
|
|
|
rc=$?
|
|
|
|
rc=$?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
|
|
|
|
|
|
|
|
sleep $SSVNC_EXTRA_SLEEP
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
stty sane
|
|
|
|
stty sane
|
|
|
|
i=0
|
|
|
|
i=0
|
|
|
|
while [ $i -lt 10 ]; do
|
|
|
|
while [ $i -lt 10 ]; do
|
|
|
@ -618,6 +622,9 @@ if [ "X$use_ssh" = "X1" ]; then
|
|
|
|
sleep 5
|
|
|
|
sleep 5
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
|
|
|
|
|
|
|
|
sleep $SSVNC_EXTRA_SLEEP
|
|
|
|
|
|
|
|
fi
|
|
|
|
#reset
|
|
|
|
#reset
|
|
|
|
stty sane
|
|
|
|
stty sane
|
|
|
|
#echo "pssh=\"$pssh\""
|
|
|
|
#echo "pssh=\"$pssh\""
|
|
|
@ -944,6 +951,9 @@ if [ "X$direct_connect" != "X" ]; then
|
|
|
|
host="localhost"
|
|
|
|
host="localhost"
|
|
|
|
disp="$N"
|
|
|
|
disp="$N"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
|
|
|
|
|
|
|
|
sleep $SSVNC_EXTRA_SLEEP
|
|
|
|
|
|
|
|
fi
|
|
|
|
if [ "X$reverse" = "X" ]; then
|
|
|
|
if [ "X$reverse" = "X" ]; then
|
|
|
|
echo "$VNCVIEWERCMD" "$@" $host:$disp
|
|
|
|
echo "$VNCVIEWERCMD" "$@" $host:$disp
|
|
|
|
trap "final" 0 2 15
|
|
|
|
trap "final" 0 2 15
|
|
|
@ -1092,6 +1102,9 @@ sleep 2
|
|
|
|
rm -f "$tmp"
|
|
|
|
rm -f "$tmp"
|
|
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
|
|
|
|
|
|
|
|
sleep $SSVNC_EXTRA_SLEEP
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo "Running viewer:"
|
|
|
|
echo "Running viewer:"
|
|
|
|
if [ "X$reverse" = "X" ]; then
|
|
|
|
if [ "X$reverse" = "X" ]; then
|
|
|
|
echo "$VNCVIEWERCMD" "$@" localhost:$N
|
|
|
|
echo "$VNCVIEWERCMD" "$@" localhost:$N
|
|
|
|