Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I used to rlogin/telnet a server and use xterm& to create several xterm sessions. But from time to time, the xterm may hang there and not responding at all(window can't be closed), leaving just a blank window.

I know the pid of all opened xterms from the 'mother xterm'. Is there any way to find out which is hanging one? I'd like to kill it immediately.

My environment is followed. I choose CDE as my desktop environment. Thanks!

Linux 2.6.9-67.ELsmp x86_64
OS: RedHat Enterprise Linux 4.0 U6
xterm: X.Org 6.8.2(192)

share|improve this question
2  
Also, this doesn't belong on StackOverflow. –  Filip Ekberg Jan 26 '11 at 7:49
add comment

migrated from stackoverflow.com Jan 27 '11 at 8:43

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 2 down vote accepted

Try pressing Control+Alt+Esc, you should get an X instead of your curser and it should kill whatever you click on. If the shortcut dosen't work run xkill from another terminal and the rest is the same.

share|improve this answer
    
@UserZer0, xkill rocks! Thanks! –  sandyleo Jan 26 '11 at 8:09
    
Seems like it ought to be easy at first, but CTRL+ALT+ESC is a pretty tough one to do one-handed. –  druciferre Sep 12 '13 at 1:51
add comment

You can use the kill command with -9 like this: kill -9 pid

share|improve this answer
    
is there any quick way to know the pid of hung xterm? –  sandyleo Jan 26 '11 at 8:12
add comment

Run xkill, click on the blank window. Right click to cancel.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.