add -b for pointing to the rsh program. from <mikan@mikan.net>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10152 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
usage="Usage: $0 [-l username] [-k] [-r rsh_args] [-x xterm_args] [-w term_emulator] [-v] [-h | --help] [--version] host"
|
||||
usage="Usage: $0 [-l username] [-k] [-r rsh_args] [-x xterm_args] [-w term_emulator] [-b rsh_binary][-v] [-h | --help] [--version] host"
|
||||
binary=rsh
|
||||
term=xterm
|
||||
while true
|
||||
do
|
||||
@@ -11,6 +12,7 @@ do
|
||||
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
||||
-k) kx_args="${kx_args} -k"; shift;;
|
||||
-w) term=$2; shift 2;;
|
||||
-b) binary=$2; shift 2;;
|
||||
--version) echo "$0: %PACKAGE% %VERSION%"; exit 0;;
|
||||
-h) echo $usage; exit 0;;
|
||||
--help) echo $usage; exit 0;;
|
||||
@@ -38,4 +40,4 @@ pid=$1
|
||||
disp=${2}${screen}
|
||||
auth=$3
|
||||
kill -USR1 $pid
|
||||
rsh -n $rsh_args $host "/bin/sh -c 'DISPLAY=$disp XAUTHORITY=$auth $term -T $title -n $title $xterm_args </dev/null >/dev/null 2>/dev/null &'"
|
||||
$binary -n $rsh_args $host "/bin/sh -c 'DISPLAY=$disp XAUTHORITY=$auth $term -T $title -n $title $xterm_args </dev/null >/dev/null 2>/dev/null &'"
|
||||
|
Reference in New Issue
Block a user