2 # $Heimdal: tenletxr.in 5328 1999-02-04 09:29:59Z assar $
5 usage
="Usage: $0 [-l username] [-k] [-v] [-h | --help] [--version] host [port]"
9 -l) kx_args
="${kx_args} -l $2"; shift 2;;
10 -k) kx_args
="${kx_args} -k"; shift;;
11 --version) echo "$0: %PACKAGE% %VERSION%"; exit 0;;
12 -h) echo $usage; exit 0;;
13 --help) echo $usage; exit 0;;
15 -*) echo "$0: Bad option $1"; echo $usage; exit 1;;
19 if test $# -lt 1; then
26 pdc_trams
=`dirname $0`
27 PATH
=$pdc_trams:$bindir:$PATH
29 set -- `kx $kx_args $host`
30 if test $# -ne 3; then
33 screen
=`echo $DISPLAY | sed -ne 's/[^:]*:[0-9]*\(\.[0-9]*\)/\1/p'`
37 env DISPLAY
=$disp XAUTHORITY
=$auth $SHELL