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 |
|
|
| # 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 |
Platon Group <platon@platon.org> http://platon.org/
|
|