[lug] Problem with $DISPLAY script and SSH.

Harris, James A (Jim) HarriJA at LOUISVILLE.STORTEK.COM
Thu Feb 3 15:36:52 MST 2000


Thanks all who replied.  Walter Pienciak emailed me directly with this
script that worked excellently.  Thanks again for your help!

-Jim

-----Original Message-----
From: Walter Pienciak [mailto:walter at frii.com]
Hi, Jim,

Did you get it figured out?  If not, try

if [ $SSH_TTY ]
then echo "Connected via SSH -- no DISPLAY munging!"
else
    DISPLAY=$REMOTEHOST':0.0'; export DISPLAY
    echo "DISPLAY is munged."
fi

Or suchlike.

Walter




More information about the LUG mailing list