LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2011, 05:55 PM   #1
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Rep: Reputation: 0
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 ~]#
 
Old 11-22-2011, 06:01 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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
 
Old 11-22-2011, 06:29 PM   #3
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by corp769 View Post
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.
 
Old 11-22-2011, 06:47 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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.
 
Old 11-28-2011, 05:47 PM   #5
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
yeah, I commented that out but i'm still unable to kill the xterm window. Suggestions?
 
Old 11-28-2011, 07:26 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XTerm(241) support for truetype fonts and method of changing XTerm font. ajassat Linux - Software 2 08-19-2009 01:01 PM
First Time Install - Kernel Panic Out of Memory and No Killable Processes... BoydRice Slackware - Installation 10 01-14-2009 03:21 PM
kernel panic -not syncing : out of memory and no killable processes PhillipHuang Linux - Software 1 04-30-2008 08:10 PM
kmix@kde 3.5: screen distorted / master muted / app not killable sgjanssens Linux - Software 1 01-02-2006 06:52 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM


All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration