#!/bin/tcsh
# A script to run remote xterm to local display
# Usage:
#
# rxterm hostname
#
# Let's make sure that this script has right
# number of arguments from command prompt
if ($#argv != 1) then
echo "Usage: rxterm hostname";
exit 1;
endif
# Let's grep our ip address!
set LOCAL_IP = `hostname -i`;
# Ok, let's add to the X access control list
xhost +$argv[1];
# Ok, let's run it
rsh $argv[1] xterm -sb -bg black -fg white \
-title \'xterm on $argv[1] from localhost\' \
-display $LOCAL_IP\:0.0 &
Text file Source (historic): geocities.com/jchakma/LINUX
geocities.com/jchakma(to report bad content: archivehelp @ gmail)
|
|
|
|
|