From bccc590217b53929138c9f0c95c1d139a5e6ba5a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 13 Feb 1997 22:43:03 +0000 Subject: [PATCH] allow specification of port number git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1235 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/rxtelnet.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appl/kx/rxtelnet.in b/appl/kx/rxtelnet.in index f53ec4620..d5d2ba789 100644 --- a/appl/kx/rxtelnet.in +++ b/appl/kx/rxtelnet.in @@ -1,7 +1,7 @@ #!/bin/sh # $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 do case $1 in @@ -17,8 +17,8 @@ if test $# -lt 1; then exit 1 fi host=$1 +port=$2 title="${title}${host}" -shift bindir=%bindir% pdc_trams=`dirname $0` PATH=$pdc_trams:$bindir:$PATH @@ -45,8 +45,8 @@ for i in $*; do done done 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 - env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host + env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host $port kill -USR2 $pid fi