$display 

> Can anyone tell me if it is possible to pass through the display
> variable to this new xterm

These lines should be placed in the .login or .profile:

TTTY=`tty`

if [ "$TTTY" != "/dev/console" ]
then
        DISP=`who am i | awk '{print $6}' | sed 's/(//g' | sed 's/)//g'`
        DISPLAY=$DISP:0.0
        export DISPLAY
else
        DISPLAY="127.0.0.1:0.0"
        export DISPLAY
fi

$display 

try something like

#!/bin/sh
tty=`tty | sed 's/.*pts/pts/'`
disp=`who -l | grep $tty | awk '{ print $NF }' | sed 's/[\(\)]//g'`
echo $disp

although this script needs some error checking; another option may be to use ssh, which passes on the DISPLAY environment variable to the session _AND_ is way more secure than a telnet session.

JJK