AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only

odd behavior with xterm and X

  • 1.  odd behavior with xterm and X

    Posted Thu September 22, 2011 05:50 PM

    Originally posted by: asdfcrash


    I had to rebuild and aix machine here at work. I is a standard install of 5.3 ml6. I had no errors during the install and was able to get the system up execpt for one little weird issue. when this machine ran previously we started and X11 via a script in rc2.d ( this still works and runs the X11 server at start up) then for the application we ran a script that basically ran and xterm with several parameters configured:

    xterm -ls -bg red -fg white -sl 1000 -T "CGI-AMS Xwin Controller Session" -display 127.0.0.1:0.0 -e startupscript.sh &

    In the past when I would do a ps -ef | grep xterm it would return what i see above. but now when I run this script it runs the xterm but i just get the following output

    xterm -e startupscript &

    If i were to put some arbitrary task in the script at the begining like touch /home/user/foo that works. so it is executing the script. and the xterm is staying running. The script runs a set of utilitys for an application and they need to be run in an xsession. This is not working for I am assuming because it looks to me like all the options I used for my xterm aren't being passed along. Does anyone got any idea on this? I can't even get just the title change option to work under root. if export DISPLAY=127.0.0.1:0.0 and run xterm it will show up as a process and stay their till I kill it but if i run xterm -T "Testing" ps -ef shows the xterm running but the -T option seems to not be their. Just to make sure its not a switch in ps command I exported to my own linux box and ran xterm -T " testing "
    and on the aix box the ps -ef returns xterm -T " testing " as running. I'm at a loss here.
    #AIX-Forum