Diff for scripts/shell/xssh/Attic/tcshrc between version 1.1 and 1.2
| version 1.1, 2002/03/16 12:26:36 |
version 1.2, 2002/03/16 17:17:32 |
|
|
| # and user is logged in via ssh |
# and user is logged in via ssh |
| if ( $shlvl == 1 ) then |
if ( $shlvl == 1 ) then |
| unsetenv DISPLAY |
unsetenv DISPLAY |
| if ($?SSH_CLIENT) then |
if ( "$?SSH_CLIENT" ) then |
| set DISP=`printenv SSH_CLIENT | awk '{print $1 }'`":0" |
DISP=`xauth list "$SSH_CLIENT":0 | awk '{print $1}'` |
| set count=`xauth list $DISP | wc -l` |
if ( ! -z "$DISP" ) then |
| if ( $count != 1 ) then |
if ( $shlvl != 1 ) then |
| echo "Setting DISPLAY "`(printenv SSH_CLIENT | awk '{print $1 }')`":0" |
echo "Setting DISPLAY $DISP" |
| setenv DISPLAY `printenv SSH_CLIENT | awk '{print $1 }'`:0 |
endif |
| |
setenv DISPLAY $DISP |
| endif |
endif |
| endif |
endif |
| endif |
endif |
Platon Group <platon@platon.org> http://platon.org/
|
|