allow specification of port number
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1235 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
usage="Usage: $0 [-l username] [-t args_to_telnet] [-x args_to_xterm] host"
|
usage="Usage: $0 [-l username] [-t args_to_telnet] [-x args_to_xterm] host [port]"
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
@@ -17,8 +17,8 @@ if test $# -lt 1; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
host=$1
|
host=$1
|
||||||
|
port=$2
|
||||||
title="${title}${host}"
|
title="${title}${host}"
|
||||||
shift
|
|
||||||
bindir=%bindir%
|
bindir=%bindir%
|
||||||
pdc_trams=`dirname $0`
|
pdc_trams=`dirname $0`
|
||||||
PATH=$pdc_trams:$bindir:$PATH
|
PATH=$pdc_trams:$bindir:$PATH
|
||||||
@@ -45,8 +45,8 @@ for i in $*; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
if test -n "$term"; then
|
if test -n "$term"; then
|
||||||
($term -title $title -name $title $xterm_args -e env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host; kill -USR2 $pid) &
|
($term -title $title -name $title $xterm_args -e env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host $port; kill -USR2 $pid) &
|
||||||
else
|
else
|
||||||
env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host
|
env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host $port
|
||||||
kill -USR2 $pid
|
kill -USR2 $pid
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user