Files
heimdal/appl/kx/rxterm.in
Assar Westerlund da61df91f4 Do not add colon to the display any more.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@968 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 18:26:21 +00:00

23 lines
386 B
Bash

#!/bin/sh
# $Id$
if test $# -lt 1; then
echo "Usage: $0 host [arguments to xterm]"
exit 1
fi
host=$1
shift
xterm_args=$*
bindir=%bindir%
pdc_trams=`dirname $0`
PATH=$pdc_trams:$bindir:$PATH
export PATH
set -- `kx $host`
if test $# -ne 3; then
exit 1
fi
pid=$1
disp=$2
auth=$3
kill -USR1 $pid
rsh -n $host "env DISPLAY=$disp XAUTHORITY=$auth xterm -T $host -n $host $xterm_args &"