[plug] VNC Shell Script

Brock Woolf ultima160 at iinet.net.au
Sun Nov 7 20:46:23 WST 2004


On 07/11/2004, at 8:09 PM, Cameron Patrick wrote:

Interestingly, i just had a look at the process table and there is:
rfbserver.sh and x0rfbserver listed. Don't know if this means anything.
>
> Is cron sending you any e-mail with the output of the command?  (It'll
> probably end up in /var/spool/mail/YOUR-USERNAME.)

Nope, not a single thing there. The directory /var/spool/mail/ exists,  
but it is empty.

> You can get a listing of the environment of a running process by
>
>     cat /proc/PID/environ | awk 'BEGIN{RS="\000"}{print}'

Hmmm big difference.
The output when i double-click on the rfbserver.sh script:

[root at 203-59-15-1 brock]# cat /proc/18951/environ | awk  
'BEGIN{RS="\000"}{print}'
DISPLAY=:0
LC_PAPER=en_US
LESSKEY=/etc/.less
LC_ADDRESS=en_US
KDE_MULTIHEAD=false
HOSTNAME=203-59-15-1.dyn.iinet.net.au
LC_MONETARY=en_US
SHELL=/bin/bash
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd
HISTSIZE=1000
TMPDIR=/home/brock/tmp
GTK2_RC_FILES=/usr/share/themes/Galaxy/gtk-2.0/gtkrc:/etc/gtk-2.0/ 
gtkrc:/home/brock/.gtkrc-2.0:/home/brock/.kde/share/config/gtkrc
GS_LIB=/home/brock/.fonts
GTK_RC_FILES=/usr/share/themes/Galaxy/gtk/gtkrc:/etc/gtk/gtkrc:/home/ 
brock/.gtkrc:/home/brock/.kde/share/config/gtkrc
LC_NUMERIC=en_US
QTDIR=/usr/lib/qt3/
KDE_FULL_SESSION=true
USER=brock
LC_TELEPHONE=en_US
LS_COLORS=
XCURSOR_SIZE=
SESSION_MANAGER=local/203-59-15-1.dyn.iinet.net.au:/tmp/.ICE-unix/18516
NLSPATH=/usr/share/locale/%l/%N
PATH=/usr/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/ 
home/brock/bin
DESKTOP_SESSION=default
MAIL=/var/spool/mail/brock
LC_MESSAGES=en_US
LC_COLLATE=en_US
LC_IDENTIFICATION=en_US
SECURE_LEVEL=3
PWD=/home/brock
INPUTRC=/etc/inputrc
XMODIFIERS=@im=none
HELP_BROWSER=kfmclient openProfile webbrowsing
LANG=en_US
LC_MEASUREMENT=en_US
HISTCONTROL=ignoredups
HOME=/home/brock
SHLVL=3
LANGUAGE=en_US:en
GCONF_TMPDIR=/tmp
XCURSOR_THEME=default
LOGNAME=brock
LESS=-MM
TMP=/home/brock/tmp
LC_CTYPE=en_US
LESSOPEN=|/usr/bin/lesspipe.sh %s
DESKTOP=kde
BROWSER=kfmclient openProfile webbrowsing
LC_TIME=en_US
G_BROKEN_FILENAMES=1
LC_NAME=en_US
XAUTHORITY=/home/brock/.Xauthority
_=/usr/bin/x0rfbserver


The output when the cron job starts the x0rfbserver:

[root at 203-59-15-1 brock]# cat /proc/19332/environ | awk  
'BEGIN{RS="\000"}{print}'
DISPLAY=:0
SHELL=/bin/sh
PATH=/usr/bin:/bin
PWD=/home/brock
HOME=/home/brock
SHLVL=2
LOGNAME=brock
_=/usr/bin/x0rfbserver

I can see that that could be a problem, but I wouldn't know how to fix  
it. Or what it means
- Brock





More information about the plug mailing list