therefore we have to add strange directories to the PATH. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@837 ec53bebd-3082-4978-b11e-865c3cabbd6b
22 lines
375 B
Bash
22 lines
375 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
|
|
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 &"
|