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

Diff for scripts/shell/xssh/Attic/bashrc 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
 disp()  disp()
 {  {
         local DISP count          local DISP
         export DISPLAY=          export DISPLAY=
         if [ $?SSH_CLIENT ]; then          if [ "$?SSH_CLIENT" ]; then
                 DISP=( `printenv SSH_CLIENT | awk '{print $1 }'`:0 )                  DISP=`xauth list  "$SSH_CLIENT":0 | awk '{print $1}'`
                 count=( `xauth list $DISP | wc -l` )                  if [ ! -z "$DISP" ]; then
                 if [ $count = 1 ]; then  
                         if [ $SHLVL != 1 ]; then                          if [ $SHLVL != 1 ]; then
                                 echo "Setting DISPLAY $DISP"                                  echo "Setting DISPLAY $DISP"
                         fi                          fi

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