#!/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] kterm -sb -bg black -fg white \ -title \'kterm on $argv[1] from localhost\' \ -display $LOCAL_IP\:0.0 &