LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   un killable xterm? (https://www.linuxquestions.org/questions/linux-newbie-8/un-killable-xterm-914969/)

daisychick 11-22-2011 04:55 PM

un killable xterm?
 
So I've tried to kill-9 these like... 8 times now and they just keep popping back up. can anyone tell me why?

Code:

[root@head ~]# ps aux | grep xterm
root    18984  0.0  0.2 109460  2996 pts/1    S    16:51  0:00 xterm
root    18985  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18986  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18987  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18988  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18989  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18990  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18991  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18992  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18993  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    18994  0.0  0.2 107364  2916 pts/1    S    16:51  0:00 xterm
root    18995  0.0  0.2 107364  2912 pts/1    S    16:51  0:00 xterm
root    20066  0.0  0.0  61168  756 pts/1    S+  16:53  0:00 grep xterm
[root@head ~]#


corp769 11-22-2011 05:01 PM

Hello,

Try "pkill xterm" and see if that helps any.... Besides that, doing "kill -9" is the only other suggestion I have to tell you, but you did that already. What distribution are you using, and how exactly did this issue first start?

Cheers,

Josh

daisychick 11-22-2011 05:29 PM

Quote:

Originally Posted by corp769 (Post 4531058)
What distribution are you using, and how exactly did this issue first start?

CentOS 5.5 with GDM. I think it's a wonky VNC setup but I'm not sure. Here's root's xstartup. (yes, i've been logging in as root)
Code:

#!/bin/sh
# Add the following line to ensure you always have an xterm available.
( while true ; do xterm ; done ) &
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

I commented out both xterm commands but when I use VNC it still opens a xterm window.

corp769 11-22-2011 05:47 PM

Code:

( while true ; do xterm ; done ) &
That's your problem. Have you tried commenting that out or deleting it? I know you mentioned that you commented out both xterm commands, but the forever true while loop would do what is going on.

daisychick 11-28-2011 04:47 PM

yeah, I commented that out but i'm still unable to kill the xterm window. Suggestions? :D

corp769 11-28-2011 06:26 PM

Try using pidof within your script, and then run top, and see if the PIDs match. If not, then you know it's not your script. If that's the case, you will need to find out where exactly the xterms are being ran from.


All times are GMT -5. The time now is 12:00 PM.