Change the script to be:
if tty -s; then
set . $(ps -o args -p $PPID)
case "$3" in
*telnet*) DISPLAY="$5";;
*rlogin*) DISPLAY="$8";;
*) DISPLAY="None";;
esac
DISPLAY="$DISPLAY:0"
if [ "$DISPLAY" = "None:0" ]
then
unset DISPLAY
else
export DISPLAY
fi
fi
the previous one had a "." in the line:
*) DISPLAY="None";;
which was a tab.
--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology
This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law. If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html