That's odd. That's what I think.
But then X is often odd.
So let's try to go back to basics and see what we know:
1) Is donner running RedHat (version?) or is it Suse?
2) Are you logged in to a graphical interface? That is, is your terminal a window on your screen or is it the whole screen?
3) If you log out and log in fresh, what does the command "env" show? If you are using a graphical UI, then it ought to have a DISPLAY set already.
4) Are you sitting in front of donner's console or are you actually at a different computer and connected to donner by SSH or something? Or is it that you are at donner and trying to run the graphical program on some other computer but with the display set to donner?
Let us know the answers to these questions and either we can come up with something helpful or at least maybe we'll know more and better questions to ask. :)
Paul
1) donner is running on SuSe and the computer(version: RedHat)'s hostname is roadedit.
2) I am using roadedit logged into Suse as a root , and my terminal is a window on my screen , not the whole screen.
3)the command "env" shows :
LESSKEY=/etc/lesskey.bin
MANPATH=/opt/intel/idbe/9.1.036/man:/opt/intel/fc/9.1.036/man:/usr/local/man:/usr/share/man:/usr/X11R6/man:/opt/gnome/share/man
INFODIR=/usr/local/info:/usr/share/info:/usr/info
NNTPSERVER=news
HOSTNAME=donner
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
GNOME2_PATH=/usr/local:/opt/gnome:/usr
INTEL_LICENSE_FILE=/opt/intel/fc/9.1.036/licenses:/opt/intel/licenses:/home/tli/intel/licenses
TERM=xterm
SHELL=/bin/bash
HOST=donner
HISTSIZE=1000
PROFILEREAD=true
EMOSLIBOLD=-L/usr/local/lib_intel -lemosold
BUFR_TABLES=/usr/local/bufr_intel
MORE=-sl
QTDIR=/usr/lib/qt3
USER=tli
JRE_HOME=/usr/lib/jvm/jre
GROFF_NO_SGR=yes
HISTFILESIZE=1000
http_proxy=http://192.122.223.140:80
LIBGL_DRIVERS_PATH=/usr/X11R6/lib/modules/dri
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:s o=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33; 01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*. bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tb z=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj= 00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00 ;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.t b2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bm p=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg =01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=0 1;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01; 35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35 :*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*. au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc =00;32:*.wav=00;32:
XNLSPATH=/usr/X11R6/lib/X11/nls
METVIEW_DIR=/usr/local/apps/Metview
ENV=/etc/bash.bashrc
HOSTTYPE=i386
MOZ_PRINTER_NAME=pcol1
FROM_HEADER=
PAGER=less
CSHEDIT=emacs
XDG_CONFIG_DIRS=/usr/local/etc/xdg/:/etc/xdg/:/etc/opt/gnome/xdg/
MINICOM=-c on
PATH=/opt/intel/idbe/9.1.036/bin:/opt/intel/fc/9.1.036/bin:/home/tli/bin:/usr/local/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/sbin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
MAIL=/var/mail/tli
CPU=i686
JAVA_BINDIR=/usr/lib/jvm/jre/bin
BUFRTAB_DIR=/usr/local/bufr_intel
PWD=/home/tli
INPUTRC=/home/tli/.inputrc
JAVA_HOME=/usr/lib/jvm/jre
MAGLIB=-L/usr/local/lib/magics/lib -lmagics -lMvDevices -L/usr/local/lib/magics/lib -lmagics -L/usr/lib -lGLw -lGLU -lGL -L/usr/lib -L/usr/X11R6/lib -lgd -lpng
-lz -ljpeg -lfreetype -L/usr/X11R6/lib -L/usr/lib -lXm -lXt -lXmu -lXi -lXext -lX11 -lXp -lm -L/usr/lib -lstdc++ -lm
EDITOR=/bin/vi
LANG=en_GB.UTF-8
PYTHONSTARTUP=/etc/pythonstart
TEXINPUTS=:/home/tli/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
HOME=/root
SHLVL=2
EMOSLIB=-L/usr/local/lib_intel -lemos
MAG_HOME=/usr/local/lib/magics
OSTYPE=linux
LESS_ADVANCED_PREPROCESSOR=no
XCURSOR_THEME=Industrial
LS_OPTIONS=-A -N --color=tty -T 0
WINDOWMANAGER=/usr/X11R6/bin/gnome
GTK_PATH=/usr/local/lib/gtk-2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0
F_UFMTENDIAN=big
LOGNAME=tli
MACHTYPE=i686-suse-linux
LESS=-M -I
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
CVS_RSH=ssh
ACLOCAL_FLAGS=-I /opt/gnome/share/aclocal
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/etc/opt/kde3/share/:/opt/kde3/share/:/opt/gnome/share/
LESSOPEN=lessopen.sh %s
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/opt/kde3/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig
ARCH=LINUX
INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info
LESSCLOSE=lessclose.sh %s %s
G_BROKEN_FILENAMES=1
COLORTERM=1
JAVA_ROOT=/usr/lib/jvm/jre
mc=() { . /usr/share/mc/bin/mc-wrapper.sh
}
_=/usr/bin/env
4) I am using my computer named roadedit(Redhat) logged into donner(Suse) as a root to use this command "xgrbplt" which returns a graph in a window on my screen.
and the question is ( this is actually what I want to do ! ) :
donner is the server, I want to use this page( using Firefox ) either on my computer or donner itself .
http://donner.aaa..../~lmcelwain/xgrbplt.php in this page
I embedded shell command in php :
the code is :
/*
<?php
$name = $_POST['gname'] ;
chdir("/home/lmcelwain......");
echo $name ;
$cmd="xgrbplt $name";
$output=shell_exec($cmd);
echo "<pre>$output</pre>";
?>
*/
I have used this way with other shell command , and it worked.
but here, result is :
-----------
SCRATCH=/18475
Running xgrbplt.x
You must specify the environment variable DISPLAY
e.g. setenv DISPLAY aran:0.0
or setenv DISPLAY fl1:0.0
... etc
Program terminating
DISPLAY=
------------
I got the same result from that page( http://donner......) either on donner or my computer.
result expected from this page should be a graph displayed in a window in a terminal or a web page, I am not sure, bcs I never get it work.
Paul, Thanks for you attention !
Tanya