diff --git a/appl/kx/rxterm.in b/appl/kx/rxterm.in index 10bf9d7e3..48bf18069 100644 --- a/appl/kx/rxterm.in +++ b/appl/kx/rxterm.in @@ -1,12 +1,15 @@ #!/bin/sh # $Id$ -if test $# -ne 1; then - echo "Usage: $0 host" +if test $# -lt 1; then + echo "Usage: $0 host [arguments to xterm]" exit 1 fi host=$1 +shift +xterm_args=$* bindir=%bindir% -PATH=$PATH:$bindir set -- `kx $host` +PATH=$PATH:$bindir +set -- `kx $host` if test $# -ne 3; then exit 1 fi @@ -14,4 +17,4 @@ pid=$1 disp=:$2 auth=$3 kill -USR1 $pid -$bindir/rsh -n $host "env DISPLAY=$disp XAUTHORITY=$auth xterm -T $host -n $host &" +rsh -n $host "env DISPLAY=$disp XAUTHORITY=$auth xterm -T $host -n $host $xterm_args &"