Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

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
Line 7 
Line 7 
 # 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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top