From da612b15ff9d3f56246ca8e2f66276a33b208bea Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 9 Oct 1996 20:59:17 +0000 Subject: [PATCH] Support sending arguments to telnet. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@836 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/rxtelnet.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/appl/kx/rxtelnet.in b/appl/kx/rxtelnet.in index 0c6c4d279..300da0a20 100644 --- a/appl/kx/rxtelnet.in +++ b/appl/kx/rxtelnet.in @@ -1,10 +1,12 @@ #!/bin/sh # $Id$ -if test $# -ne 1; then - echo "Usage: $0 host" +if test $# -lt 1; then + echo "Usage: $0 host [arguments to telnet]" exit 1 fi host=$1 +shift +telnet_args=$* bindir=%bindir% PATH=$PATH:$bindir set -- `kx $host` @@ -28,8 +30,8 @@ for i in $*; do done done if test -n "$term"; then - $term -title $host -name $host -e env DISPLAY=$disp XAUTHORITY=$auth telnet -D $host + $term -title $host -name $host -e env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host else - env DISPLAY=$disp XAUTHORITY=$auth telnet -D $host + env DISPLAY=$disp XAUTHORITY=$auth telnet -D $telnet_args $host fi kill -USR2 $pid