#!/bin/csh # A simple script created by jchakma@yahoo.com # -------------------------------------------- # # 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 & # If you are concerned with someone looking over your X server # and logging your keystrokes or taking snapshot of your screen # uncomment the following two lines. #sleep 2; #xhost -$argv[1]; # For further inquiry please visit the following page: # http://bau2.uibk.ac.at/matic/ccxsec.htm