rsh can reside in path or %bindir%
support extra arguments to xterm (from <jas@pdc.kth.se>) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@835 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained 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 &"
|
||||
|
Reference in New Issue
Block a user